prevent remount root filesystem in rw mode during reboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15396 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
1e797ed26b
commit
a288b88bd9
@ -671,12 +671,12 @@ unless ($dracutmode) { #in dracut mode, we delegate all this activity
|
||||
}
|
||||
}
|
||||
|
||||
if ($dracutmode) {
|
||||
#if ($dracutmode) {
|
||||
# modify etc/rc.sysinit, prevent remounting
|
||||
# TODO: need to find one way to prevent remounting
|
||||
my $SYSINITFILE;
|
||||
my $TMPSYSINITFILE;
|
||||
if (-f "$rootimg_dir/etc/rc.sysinit") {
|
||||
my $SYSINITFILE;
|
||||
my $TMPSYSINITFILE;
|
||||
# backup etc/rc.sysinit file before modifing it
|
||||
system("cp -a $rootimg_dir/etc/rc.sysinit $rootimg_dir/etc/rc.sysinit.backup");
|
||||
open($SYSINITFILE, "$rootimg_dir/etc/rc.sysinit");
|
||||
@ -696,7 +696,7 @@ if ($dracutmode) {
|
||||
close($TMPSYSINITFILE);
|
||||
cp("/tmp/rc.sysinit.tmp", "$rootimg_dir/etc/rc.sysinit");
|
||||
}
|
||||
}
|
||||
#}
|
||||
|
||||
# before mkinitrd, run depmod to generate modules.dep
|
||||
system("chroot $rootimg_dir depmod $kernelver");
|
||||
|
Loading…
Reference in New Issue
Block a user