From 4f87385d022968e97b0763e52247eb356c12927a Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 11 Aug 2010 14:51:30 +0000 Subject: mount /proc and /sys for gfxboot files too --- draklive | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1