Mageia Bugzilla – Attachment 3766 Details for
Bug 5661
Can not unlock encrypted /home on my LVM to use it (need to write /etc/crypttab)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
eg for reloading partition tables
5661-3b.diff (text/plain), 769 bytes, created by
Thierry Vignaud
on 2013-04-19 07:55:46 CEST
(
hide
)
Description:
eg for reloading partition tables
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2013-04-19 07:55:46 CEST
Size:
769 bytes
patch
obsolete
>diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm >index 12216bc..74399d9 100644 >--- a/perl-install/fs/partitioning_wizard.pm >+++ b/perl-install/fs/partitioning_wizard.pm >@@ -38,9 +38,13 @@ sub partition_with_diskdrake { > do { > $ok = 1; > my $do_force_reload = sub { >+ my $tmp_file = '/tmp/crypttab'; >+ fs::dmcrypt::save_crypttab_($all_hds, $tmp_file); > my $new_hds = fs::get::empty_all_hds(); > fs::any::get_hds($new_hds, $fstab, $manual_fstab, $partitioning_flags, $skip_mtab, $in); > %$all_hds = %$new_hds; >+ fs::dmcrypt::read_crypttab_($all_hds, $tmp_file); >+ rm_rf($tmp_file); > $all_hds; > }; > require diskdrake::interactive;
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index 12216bc..74399d9 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -38,9 +38,13 @@ sub partition_with_diskdrake { do { $ok = 1; my $do_force_reload = sub { + my $tmp_file = '/tmp/crypttab'; + fs::dmcrypt::save_crypttab_($all_hds, $tmp_file); my $new_hds = fs::get::empty_all_hds(); fs::any::get_hds($new_hds, $fstab, $manual_fstab, $partitioning_flags, $skip_mtab, $in); %$all_hds = %$new_hds; + fs::dmcrypt::read_crypttab_($all_hds, $tmp_file); + rm_rf($tmp_file); $all_hds; }; require diskdrake::interactive;
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5661
:
3597
|
3626
|
3644
|
3757
|
3758
|
3759
|
3761
|
3762
|
3763
|
3765
| 3766 |
3767
|
3811
|
3812