diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-17 11:51:29 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-17 11:51:29 +0000 |
commit | d1098abfb443fb7cf8cbc97ad96a303fa5c749f8 (patch) | |
tree | f4fdf2f84e041b554bd964cc5de47a8c95b203da /perl-install/standalone/bootloader-config | |
parent | 1d2aeea6110b4e3b8db35e33f5543153a8b41bc6 (diff) | |
download | drakx-d1098abfb443fb7cf8cbc97ad96a303fa5c749f8.tar drakx-d1098abfb443fb7cf8cbc97ad96a303fa5c749f8.tar.gz drakx-d1098abfb443fb7cf8cbc97ad96a303fa5c749f8.tar.bz2 drakx-d1098abfb443fb7cf8cbc97ad96a303fa5c749f8.tar.xz drakx-d1098abfb443fb7cf8cbc97ad96a303fa5c749f8.zip |
- bootloader-config:
o --action migrate-to-uuids: do not migrate software raid to UUID (#43928)
also fix a small typo in bootloader-config
Diffstat (limited to 'perl-install/standalone/bootloader-config')
-rwxr-xr-x | perl-install/standalone/bootloader-config | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config index 17446b581..8c3dc7466 100755 --- a/perl-install/standalone/bootloader-config +++ b/perl-install/standalone/bootloader-config @@ -284,7 +284,7 @@ sub _migrate_to_uuids__fstab() { sub _migrate_dev_to_uuid { my ($fstab, $dev) = @_; - $dev && $dev =~ m!/dev/! or next; + $dev && $dev =~ m!/dev/! or return; my $part = fs::get::device2part($dev, $fstab); $part && $part->{device_UUID} && "UUID=$part->{device_UUID}"; @@ -292,7 +292,8 @@ sub _migrate_dev_to_uuid { sub _set_prefer_device_UUID { my ($part) = @_; - $part->{device_UUID} && !$part->{prefer_device_UUID} && !$part->{prefer_device_LABEL} or return; + $part->{device_UUID} && !$part->{prefer_device_UUID} && !$part->{prefer_device_LABEL} + && devices::should_prefer_UUID($part->{device}) or return; $part->{prefer_device_UUID} = 1; $part->{prefer_device} = 0; 1; |