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
This commit is contained in:
Jeremy Katz 2008-10-15 12:57:03 -04:00
parent 60b147e10d
commit 3cb271878a

View File

@ -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