WizardKit/.linux_items/include/live/airootfs/usr/local/bin/remount-rw
2Shirt b9e5f1921f Reorganized include folders
* include/live is "burned" into the sfs files during build-arch
* include/iso is added to the iso folder before iso creation
* Added --copy-archiso flag to Build Linux
2017-12-12 11:34:05 -08:00

22 lines
322 B
Bash

#!/bin/bash
#
## Remount volume read-write
if ! mount | grep -q "$1"; then
echo "ERROR: Can't remount $1"
sleep 2s
exit 1
fi
DEVICE=$(mount | grep "$1" | cut -d' ' -f1)
echo "Remounting: $DEVICE"
udevil umount $DEVICE
if udevil mount $DEVICE; then
echo "Done"
else
echo "Failed"
fi
sleep 2s
exit 0