From 3cb271878a051e983ab39977ee2f1fe9e6c1fdae Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Oct 15 2008 16:59:15 +0000 Subject: Fall back to mounting /dev/live as rw If we're using the live image for a persistent overlay, we can't mount it ro, so just try to mount it rw if the ro mount fails --- diff --git a/fedora-live-base.ks b/fedora-live-base.ks index a72c1b7..0bb823c 100644 --- a/fedora-live-base.ks +++ b/fedora-live-base.ks @@ -113,7 +113,7 @@ touch /.liveimg-configured # mount live image if [ -b \`readlink -f /dev/live\` ]; then mkdir -p /mnt/live - mount -o ro /dev/live /mnt/live + mount -o ro /dev/live /mnt/live 2>/dev/null || mount /dev/live /mnt/live fi # enable swaps unless requested otherwise