Re: [PATCH] Make sure the disk holding /boot is setup before setting boot flag (#526063)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



looks ok to me

--
Martin Gracik

----- Original Message -----
From: "Hans de Goede" <hdegoede@xxxxxxxxxx>
To: "Discussion of Development and Customization of the Red Hat Linux Installer" <anaconda-devel-list@xxxxxxxxxx>
Sent: Tuesday, September 29, 2009 11:15:19 AM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: [PATCH] Make sure the disk holding /boot is setup before setting boot flag (#526063)

When re-using existing partitions, without changing them other then formatting
them, the disk for /boot may not be yet setup when writing the bootable flag
to its partition table. This triggers an error like:
Error opening /dev/mapper/jmicron_GRAID : No such file or directory

When the disk in question is a dmraid set.
---
 storage/__init__.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 55d24a8..376eda2 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -273,6 +273,7 @@ class Storage(object):
         else:
             if hasattr(boot, "bootable"):
                 boot.bootable = True
+                boot.disk.setup()
                 boot.disk.format.commitToDisk()
 
     @property
-- 
1.6.4.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux