fix dependency check logic cause config always disabled
[lunaix-os.git] / lunaix-os / scripts / mkrootfs
index 4178839469ada3181a72711a29216941cccb1d0f..682f426a044bf7aa6934475b81d03b0c060f109e 100755 (executable)
@@ -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