Re: fstab - no labels

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

 



Florin Andrei wrote:
Is there a way to tell anaconda to create /etc/fstab with no labels (but
using actual /dev nodes instead)?

Yes, there is, and I set this up for all kickstarts - labels are bad news when you have more than one partition/device that contains LABEL=/, such as new and old OS drives... It is also a good idea to edit /boot/grub/grub.conf during %post, to remove 'LABEL=/' and replace it with the proper device name.

Create an updates.img in the 'base' directory of your distribution, which contains the file 'fsset.py', patched from the anaconda source.

Here's my patch from rhel-4:

--- fsset.py-orig       2005-01-21 15:25:10.000000000 -0600
+++ fsset.py    2005-01-21 15:27:55.000000000 -0600
@@ -1048,10 +1048,10 @@
         fstab = ""
         for entry in self.entries:
             if entry.mountpoint:
-                if entry.getLabel():
-                    device = "LABEL=%s" % (entry.getLabel(),)
-                else:
-                    device = devify(entry.device.getDevice())
+#               if entry.getLabel():
+#                   device = "LABEL=%s" % (entry.getLabel(),)
+#               else:
+                device = devify(entry.device.getDevice())
                 fstab = fstab + entry.device.getComment()
                 fstab = fstab + format % (device, entry.mountpoint,
                                           entry.fsystem.getName(),

Kind Regards,
Michael Shuler
Rackspace Managed Hosting


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux