networkimprov / arch-packages

1 stars 0 forks source link

installer erase script doesn't erase eMMC properly #45

Open networkimprov opened 8 years ago

networkimprov commented 8 years ago

Erase u-boot script needs to erase more of eMMC :-)

install -ierase
...
install -irootfs...gz
...
Partitioning /dev/disk/...
Formatting new partitions on /dev/disk/...
/dev/sdb2 contains a ext4 file system
  last mounted on ...
Proceed anyway? (y,n)
mranostay commented 8 years ago

Actual issue is the installer recreates the partition map that existed before that maps to where the existing ext4 is located which results in that prompt.

@networkimprov Only options here are to add the force flags to mkfs.ext4, or have the whole mmc erased.. I think the former option is the best idea.

networkimprov commented 8 years ago

Added -F to mkfs.ext4, commit pending.

mranostay commented 8 years ago

Also please review and cherry-pick https://github.com/networkimprov/omap3-usb-boot-install/commit/6807ee36dafd0ec8a1997eb641eec09198b38c8e change into makeimg branch.

networkimprov commented 8 years ago

Does your fix mean the mkfs.ext4 force flag isn't necessary?

mranostay commented 8 years ago

@networkimprov No it is still required.