summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-08-11 14:51:30 +0000
committerOlivier Blin <oblin@mandriva.com>2010-08-11 14:51:30 +0000
commit4f87385d022968e97b0763e52247eb356c12927a (patch)
tree6d34f72d2d841f68a5ca4b9546a31c881f2ab379
parent57e19364f05147f67c47749e94e9edddfa7c47f8 (diff)
downloaddraklive-4f87385d022968e97b0763e52247eb356c12927a.tar
draklive-4f87385d022968e97b0763e52247eb356c12927a.tar.gz
draklive-4f87385d022968e97b0763e52247eb356c12927a.tar.bz2
draklive-4f87385d022968e97b0763e52247eb356c12927a.tar.xz
draklive-4f87385d022968e97b0763e52247eb356c12927a.zip
mount /proc and /sys for gfxboot files too
-rwxr-xr-xdraklive6
1 files changed, 6 insertions, 0 deletions
diff --git a/draklive b/draklive
index 3cdcf35..fdcb21f 100755
--- a/draklive
+++ b/draklive
@@ -513,6 +513,9 @@ sub create_bootloader {
-e $root . $vmlinuz_long or die "can not find kernel $kernel\n";
if ($live->{system}{gfxboot}) {
+ run_('mount', '-t', 'proc', 'none', $root . '/proc');
+ run_('mount', '-t', 'sysfs', 'none', $root . '/sys');
+
#- would be run by bootloader::add_boot_splash and make-boot-splash, but not called when we don't generate an initrd
run_({ root => $root }, '/usr/share/bootsplash/scripts/switch-themes', '-u');
#- grub-gfxmenu would be run by bootloader::write_grub from DrakX
@@ -525,6 +528,9 @@ sub create_bootloader {
} else {
warn "no gfxmenu file\n";
}
+
+ run_('umount', $root . '/sys');
+ run_('umount', $root . '/proc');
}
# this will copy (among other things) the gfxboot theme to the media