2 Replies Latest reply: Jul 3, 2013 12:18 PM by mzp RSS

    Mount by label or device name

    mzp

      Hi,

      Is there an option i can give in my kickstart file for Oracle Linux 6.4 to create the fstab entries with Labels or device names (/dev/sd*). Right now it creates them with the disk UUID which doesn't really help in getting information at a glance

       

      Thanks

        • 1. Re: Mount by label or device name
          Dude!

          You can add a %post script to your kickstart configuration to label a file system and modify /etc/fstab accordingly:

           

          For example:

           

          %post
          e2label /dev/sda1 boot
          perl -p -i -e 's|^UUID=[[:alnum:]-]+[[:blank:]]+/boot[[:blank:]]|LABEL=boot /boot |' /etc/fstab
          %end
          
          • 2. Re: Mount by label or device name
            mzp

            I could do that but I would obviously have to do some testing and its another piece to maintain. I'm just surprised because in OL 5 it mounted it by label without having to do any post configuration stuff

             

            Thanks