diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-01-14 18:47:39 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-01-14 18:47:39 +0000 |
commit | 8418efcc6c39e3c3de1297c9048f58342834247e (patch) | |
tree | 7bd6153acd271cee2551bad127e44ae914f258d1 /perl-install/standalone/drakboot | |
parent | 97cbcfe22d1866ea66732cbe8284a9a6076b65c6 (diff) | |
download | drakx-backup-do-not-use-8418efcc6c39e3c3de1297c9048f58342834247e.tar drakx-backup-do-not-use-8418efcc6c39e3c3de1297c9048f58342834247e.tar.gz drakx-backup-do-not-use-8418efcc6c39e3c3de1297c9048f58342834247e.tar.bz2 drakx-backup-do-not-use-8418efcc6c39e3c3de1297c9048f58342834247e.tar.xz drakx-backup-do-not-use-8418efcc6c39e3c3de1297c9048f58342834247e.zip |
fix reading security level
Diffstat (limited to 'perl-install/standalone/drakboot')
-rwxr-xr-x | perl-install/standalone/drakboot | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot index b8352f19c..6177fd00c 100755 --- a/perl-install/standalone/drakboot +++ b/perl-install/standalone/drakboot @@ -59,7 +59,9 @@ if ($is_bootloader_mode || any { /^--splash$/ } @ARGV) { if ($is_bootloader_mode) { $::isWizard = 1; - eval { any::setupBootloaderUntilInstalled($in, $bootloader, $all_hds, $fstab, $ENV{SECURE_LEVEL}) }; + require security::level; + my $level = security::level::from_string(security::level::get()); + eval { any::setupBootloaderUntilInstalled($in, $bootloader, $all_hds, $fstab, $level) }; die if $@ && $@ !~ /^wizcancel/; $in->exit(0); } |