From 5fdef448e9eba8d0e919b05e4d517d8dd266fad0 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 7 May 2008 15:27:10 +0000 Subject: [PATCH] -Have genimage copy /etc/skel to root's home directory for a more standard behavior git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1306 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/share/xcat/netboot/rh/genimage | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server-2.0/share/xcat/netboot/rh/genimage b/xCAT-server-2.0/share/xcat/netboot/rh/genimage index e748465a4..52f146bc2 100755 --- a/xCAT-server-2.0/share/xcat/netboot/rh/genimage +++ b/xCAT-server-2.0/share/xcat/netboot/rh/genimage @@ -413,6 +413,12 @@ sub generic_post { #This function is meant to leave the image in a state approxi print $cfgfile $_; } close($cfgfile); + foreach (<$installroot/netboot/$osver/$arch/$profile/rootimg/etc/skel/.*>) { + if (basename($_) eq '.' or basename($_) eq '..') { + next; + } + copy $_,"$installroot/netboot/$osver/$arch/$profile/rootimg/root/"; + } open($cfgfile,">","$installroot/netboot/$osver/$arch/$profile/rootimg/etc/rc3.d/S60gettyset"); print $cfgfile "#!/bin/bash\n"; print $cfgfile "for i in `cat /proc/cmdline`; do\n";