I haven't tried this in %post (I do it as an rc script), but it might work for you: grep LABEL /etc/fstab >/dev/null 2>&1 if [ $? -ne 0 ] then # fstab already fixed exit 0 fi unalias cp >/dev/null 2>&1 cd /tmp cp /etc/fstab /etc/fstab.old for ALABEL in `grep LABEL /etc/fstab | awk '{print $1}'` do for AMOUNT in `grep "$ALABEL " /etc/fstab | awk '{print $2}'` do mount | grep "$AMOUNT " > /dev/null 2>&1 if [ $? -eq 0 ] then for ADEVICE in `df -k $AMOUNT | tail -1 | awk '{print $1}'` do echo "s#$ALABEL #$ADEVICE #" >> sedit done fi done done cat /etc/fstab | sed -f sedit > test-fstab cp test-fstab /etc/fstab rm test-fstab rm sedit Donald E. Bodle, Jr., RHCT Sr. Systems Integration Engineer Platform Development The Reynolds and Reynolds Co. (937) 485-1954 -----Original Message----- From: Brian Akins [mailto:bakins@xxxxxxxxxxxxxx] Sent: Tuesday, November 04, 2003 11:31 AM To: kickstart-list@xxxxxxxxxx Subject: Replacing LABEL's with devices 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