From 1dfc1ae80e1041269053b74ec7e0273d19ce9cb0 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 7 Nov 2017 11:51:26 -0500 Subject: [PATCH] Copy in hidden files to mknb mknb was ignoring hidden files (e.g. .screenrc), fix this. --- xCAT-server/lib/xcat/plugins/mknb.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/mknb.pm b/xCAT-server/lib/xcat/plugins/mknb.pm index 5219e3b51..894ccc650 100644 --- a/xCAT-server/lib/xcat/plugins/mknb.pm +++ b/xCAT-server/lib/xcat/plugins/mknb.pm @@ -140,7 +140,7 @@ sub process_request { my $rc; my $invisibletouch = 0; if (-e "$::XCATROOT/share/xcat/netboot/genesis/$arch") { - $rc = system("cp -a $::XCATROOT/share/xcat/netboot/genesis/$arch/fs/* $tempdir"); + $rc = system("shopt -s dotglob; GLOBIGNORE=\".:..\" cp -a $::XCATROOT/share/xcat/netboot/genesis/$arch/fs/* $tempdir"); $rc = system("cp -a $::XCATROOT/share/xcat/netboot/genesis/$arch/kernel $tftpdir/xcat/genesis.kernel.$arch"); $invisibletouch = 1; } else {