diskimage-builder/elements/rpm-distro/post-install.d/05-fstab-rootfs-label
Chris Alfonso 301c3c4475 Extracting common functionality for rpm based distros
Rather than dublicating code to implement rhel or any
other derivitive, this patch introduces an rpm-distro
element that should be used as a dependency.

Change-Id: I8a92bb041764d03f430b438f0013704f79a8674c
2013-08-20 16:44:19 -04:00

7 lines
196 B
Bash
Executable File

#!/bin/bash
# Fedora 18 sets up for root to have a label of "_/"
# Fedora 19 sets up for root to have a UUID
# This regex will catch both
sed -i "s%.*\s\/\s%LABEL=cloudimg-rootfs / %" /etc/fstab