Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
#!/bin/sh -eu
MOUNTBASE='/mnt/oldroot'
umount_sys.sh "${MOUNTBASE}"
echo "Unmounting ${MOUNTBASE}"
for MOUNT in "${MOUNTBASE}/boot" "${MOUNTBASE}"
do
grep -q -F -e "${MOUNT}" /proc/mounts || continue
echo "Unmounting ${MOUNT}"
while umount "${MOUNT}" 2>/dev/null
do
:
done
done