dmsquash-live-root: squashfs in bare device
Check if dev in root=live:<dev> might be already the squashfs image. Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>master
parent
dff9baf3b4
commit
51b36f56d8
|
@ -78,7 +78,11 @@ if [ -f $livedev ]; then
|
||||||
esac
|
esac
|
||||||
[ -e /sys/fs/$fstype ] || modprobe $fstype
|
[ -e /sys/fs/$fstype ] || modprobe $fstype
|
||||||
else
|
else
|
||||||
if [ "$(blkid -o value -s TYPE $livedev)" != "ntfs" ]; then
|
livedev_fstype=$(blkid -o value -s TYPE $livedev)
|
||||||
|
if [ "$livedev_fstype" = "squashfs" ]; then
|
||||||
|
# no mount needed - we've already got the LiveOS image in $livedev
|
||||||
|
SQUASHED=$livedev
|
||||||
|
elif [ "$livedev_fstype" != "ntfs" ]; then
|
||||||
mount -n -t $fstype -o ${liverw:-ro} $livedev /run/initramfs/live
|
mount -n -t $fstype -o ${liverw:-ro} $livedev /run/initramfs/live
|
||||||
else
|
else
|
||||||
# Symlinking /usr/bin/ntfs-3g as /sbin/mount.ntfs seems to boot
|
# Symlinking /usr/bin/ntfs-3g as /sbin/mount.ntfs seems to boot
|
||||||
|
|
Loading…
Reference in New Issue