X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/bffa3430fbbaaad29bec0b5bee9c1f0bfc7fd068..HEAD:/lunaix-os/scripts/mkrootfs diff --git a/lunaix-os/scripts/mkrootfs b/lunaix-os/scripts/mkrootfs index 4178839..682f426 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 -E revision=0 "${rootfs}" \ || cleanup tmpmnt img ${prefix} mount -o loop "${rootfs}" "${tmp_mnt}" \ @@ -78,10 +78,12 @@ ${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 echo "done" fi -exit 0 \ No newline at end of file +exit 0