|
|
|
@ -990,6 +990,17 @@ function create_custom_netinstall_image {
|
|
|
|
|
extract_zimage
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function drive_error_ro {
|
|
|
|
|
echo "-----------------------------"
|
|
|
|
|
echo "Error: for some reason your SD card is not writable..."
|
|
|
|
|
echo "Check: is the write protect lever set the locked position?"
|
|
|
|
|
echo "Check: do you have another SD card reader?"
|
|
|
|
|
echo "-----------------------------"
|
|
|
|
|
echo "Script gave up..."
|
|
|
|
|
|
|
|
|
|
exit
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function unmount_all_drive_partitions {
|
|
|
|
|
echo ""
|
|
|
|
|
echo "Unmounting Partitions"
|
|
|
|
@ -1003,7 +1014,7 @@ function unmount_all_drive_partitions {
|
|
|
|
|
umount ${DRIVE} &> /dev/null || true
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
parted --script ${MMC} mklabel msdos
|
|
|
|
|
LC_ALL=C parted --script ${MMC} mklabel msdos | grep "Error:" && drive_error_ro
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function uboot_in_boot_partition {
|
|
|
|
|