summaryrefslogtreecommitdiffstats
path: root/tools/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-12-15 18:21:23 +0000
committerOlivier Blin <oblin@mandriva.org>2005-12-15 18:21:23 +0000
commit444f9e46d1ef816dcceb53f7055e7bb24cef81ad (patch)
treeb6f809e355a338546bc819ed60c374359672ddfe /tools/draklive
parent7ae531ff52637370d09b7a69d52844706e1f1dee (diff)
downloaddrakx-444f9e46d1ef816dcceb53f7055e7bb24cef81ad.tar
drakx-444f9e46d1ef816dcceb53f7055e7bb24cef81ad.tar.gz
drakx-444f9e46d1ef816dcceb53f7055e7bb24cef81ad.tar.bz2
drakx-444f9e46d1ef816dcceb53f7055e7bb24cef81ad.tar.xz
drakx-444f9e46d1ef816dcceb53f7055e7bb24cef81ad.zip
/sys is required for cdrom labels
Diffstat (limited to 'tools/draklive')
-rwxr-xr-xtools/draklive5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/draklive b/tools/draklive
index 5b1b87a36..335225f50 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -260,7 +260,7 @@ sub create_initrd {
rm_rf($live->{initrd_tree}) if -e $live->{initrd_tree};
mkdir_p($live->{initrd_tree} . $_) foreach
- qw(/bin /dev /lib /proc),
+ qw(/bin /dev /lib /proc /sys),
$live->{media}{mountpoint},
(map { $_->{mountpoint} } @{$live->{mount}{dirs} || []}),
$live->{mount}{root};
@@ -333,6 +333,8 @@ sub create_initrd_linuxrc {
if_($live->{media}{sleep}, "sleep $live->{media}{sleep}"),
#- required for labels
"mount -t proc none /proc",
+ #- required for cdrom labels
+ "mount -t sysfs none /sys",
if_($live->{debug}, "/bin/sh"),
if_($live->{media}{pre}, deref_array($live->{media}{pre})),
($live->{media}{fs} eq 'nfs' ? '/bin/mount -n -o ro,nolock' : 'mount') .
@@ -340,6 +342,7 @@ sub create_initrd_linuxrc {
(map { $loop{$_->{type}}{mount}->($live, $_) } grep { $_->{type} } @{$live->{mount}{dirs} || []}),
($live->{mount}{overlay} ? $overlay{$live->{mount}{overlay}}{mount}->($live) : ()),
"echo 0x0100 > /proc/sys/kernel/real-root-dev",
+ "umount /sys",
"umount /proc",
($live->{mount}{overlay} ?
# don't move to /initrd but /live, or else the overlay will be unmounted