X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/bffa3430fbbaaad29bec0b5bee9c1f0bfc7fd068..084eac3d5fa7deeab2296cf20653f4f7b3f75cd0:/lunaix-os/scripts/mkrootfs?ds=sidebyside diff --git a/lunaix-os/scripts/mkrootfs b/lunaix-os/scripts/mkrootfs index 4178839..52e56ed 100755 --- a/lunaix-os/scripts/mkrootfs +++ b/lunaix-os/scripts/mkrootfs @@ -51,7 +51,7 @@ function cleanup() { dd if=/dev/zero of="${rootfs}" count=${size_mb} bs=1M \ || cleanup tmpmnt -mkfs.${fs} -L lunaix-rootfs -r 0 "${rootfs}" \ +${prefix} mkfs.${fs} -L lunaix-rootfs -r 0 "${rootfs}" \ || cleanup tmpmnt img ${prefix} mount -o loop "${rootfs}" "${tmp_mnt}" \ @@ -78,6 +78,8 @@ ${prefix} umount "${tmp_mnt}" || cleanup ${prefix} rm -d "${tmp_mnt}" || cleanup +${prefix} chmod o+rw ${rootfs} || cleanup + if [ ! "${has_err:-0}" -eq 0 ]; then echo "done, but with error." else