diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-10-01 11:17:30 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-10-01 11:17:30 +0000 |
commit | 417f9c60a8d2bf56c3a10997a45a45baeffa7302 (patch) | |
tree | 22ae13581576ea2e779718eebedb94df0a0c13ff | |
parent | 64d70a6d69a93feb25fecb13e8560a0a6c218172 (diff) | |
download | draklive-install-417f9c60a8d2bf56c3a10997a45a45baeffa7302.tar draklive-install-417f9c60a8d2bf56c3a10997a45a45baeffa7302.tar.gz draklive-install-417f9c60a8d2bf56c3a10997a45a45baeffa7302.tar.bz2 draklive-install-417f9c60a8d2bf56c3a10997a45a45baeffa7302.tar.xz draklive-install-417f9c60a8d2bf56c3a10997a45a45baeffa7302.zip |
really fix "reboot needed" warning (#33986)
-rwxr-xr-x | draklive-install | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/draklive-install b/draklive-install index ef6ba61..191c61c 100755 --- a/draklive-install +++ b/draklive-install @@ -45,7 +45,8 @@ sub umount_all { } } -sub on_reboot_needed() { +sub on_reboot_needed { + my ($in) = @_; fs::partitioning_wizard::warn_reboot_needed($in); $in->exit(0); } @@ -83,7 +84,7 @@ fs::partitioning_wizard::main($in, $all_hds, $fstab, [], undef, {}, 'skip_mtab') mkdir_p($::prefix) or die "unable to create $::prefix"; -fs::any::write_hds($all_hds, $fstab, undef, \&on_reboot_needed, {}); +fs::any::write_hds($all_hds, $fstab, undef, sub { on_reboot_needed($in) }, {}); fs::any::check_hds_boot_and_root($all_hds, $fstab); fs::partitioning::choose_partitions_to_format($in, $fstab); umount_all($fstab); |