summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-16 00:02:07 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-16 00:02:07 +0000
commit6585f44a89e56ae753be1d9447e5a5c616333933 (patch)
tree2ef9689befeb690a59b6cb28219a8cc28f6757d6
parent2acfa635a587eccc6b7ac699764c314bf44c884a (diff)
downloaddrakiso-6585f44a89e56ae753be1d9447e5a5c616333933.tar
drakiso-6585f44a89e56ae753be1d9447e5a5c616333933.tar.gz
drakiso-6585f44a89e56ae753be1d9447e5a5c616333933.tar.bz2
drakiso-6585f44a89e56ae753be1d9447e5a5c616333933.tar.xz
drakiso-6585f44a89e56ae753be1d9447e5a5c616333933.zip
add support for external pre-pivot-root command in initrd ($live->{system}{initrd_pre_pivot})
-rwxr-xr-xdraklive1
1 files changed, 1 insertions, 0 deletions
diff --git a/draklive b/draklive
index 4216c20..65e5a60 100755
--- a/draklive
+++ b/draklive
@@ -578,6 +578,7 @@ sub create_initrd_scriptlet {
$storage_fs{exists $storage_fs{$fs}{mount} ? $fs : 'generic'}{mount}->($live, $media),
(map { $loop{$_->{type}}{mount}->($live, $_) } @$mount_first, @$mount_last),
($live->{mount}{overlay} ? $overlay{$live->{mount}{overlay}}{mount}->($live) : ()),
+ if_($live->{system}{initrd_pre_pivot}, deref_array($live->{system}{initrd_pre_pivot})),
"echo 0x0100 > /proc/sys/kernel/real-root-dev",
"umount /sys",
"sh -c 'umount /proc/bus/usb 2>/dev/null'",