-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
This commit is contained in:
jbjohnso 2008-05-07 15:27:10 +00:00
parent 806b5ce7ce
commit 5fdef448e9

View File

@ -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";