fix potens not being set in ttyFB* device
[lunaix-os.git] / lunaix-os / scripts / mkrootfs
index 4178839469ada3181a72711a29216941cccb1d0f..52e56edb77a3bc1a0acfe72b3c9ea75e75693391 100755 (executable)
@@ -51,7 +51,7 @@ function cleanup() {
 dd if=/dev/zero of="${rootfs}" count=${size_mb} bs=1M \
     || cleanup tmpmnt
 
 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}" \
     || 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} rm -d "${tmp_mnt}" || cleanup
 
+${prefix} chmod o+rw ${rootfs} || cleanup
+
 if [ ! "${has_err:-0}" -eq 0  ]; then
     echo "done, but with error."
 else
 if [ ! "${has_err:-0}" -eq 0  ]; then
     echo "done, but with error."
 else