Re: Replacing LABEL's with devices

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

 



Dont know which version of anaconda you are using, but the easiest way
is using an updates.img which contains an updated/modified fsset.py
file, you just comment out the python as shown below and modify the
indent/whitespace approriately within the file and anaconda will no
longer write LABEL's within /etc/fstab. I did not find an easy way to do
this with the grub.conf file, and so used a post install perl script to
look at /etc/fstab and remove LABEL=/ with the associated device listed
in fstab. 

Cliff. 

# grep -B5 -A5 RS fsset.py 
    def fstab (self):
        format = "%-23s %-23s %-7s %-15s %d %d\n"
        fstab = ""
        for entry in self.entries:
            if entry.mountpoint:
                # RS if entry.getLabel():
                # RS    device = "LABEL=%s" % (entry.getLabel(),)
                # RS else:
                device = devify(entry.device.getDevice())
            fstab = fstab + entry.device.getComment()
            fstab = fstab + format % (device, entry.mountpoint,
                                      entry.fsystem.getName(),
                                      entry.options, entry.fsck,
# 


> Subject: Replacing LABEL's with devices
> Date: Tue, 04 Nov 2003 11:31:16 -0500
> From: Brian Akins <bakins@xxxxxxxxxxxxxx>
> Reply-To: kickstart-list@xxxxxxxxxx
> Organization: CNN Internet Technologies
> To: kickstart-list@xxxxxxxxxx
> 
> Anyone got a good way to replace the LABEL's in fstab with actually
> devices in %post?
> 
> --
> Brian Akins <bakins@xxxxxxxxxxxxxx>
> CNN Internet Technologies
> 
>     ---------------------------------------------------------------
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/kickstart-list

-- 
Clifford Perry			Main:          (210) 892 4000
Rackspace Managed Hosting	Direct:  (210) 892 4025 x1265
112 East Pecan, Suite 600	Toll Free:     (800) 961 4454
San Antonio, TX 78205		Fax:  	       (210) 892 4329
Email: cperry@xxxxxxxxxxxxx	URL: http://www.rackspace.com




[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