mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-24 07:08:28 +00:00
nand-sata-install: errors should go to stderr and have clear message
This commit is contained in:
parent
85e0d124cd
commit
b37f4e13c8
1 changed files with 3 additions and 3 deletions
|
@ -278,7 +278,7 @@ create_armbian()
|
||||||
[[ -f "${TempDir}"/bootfs/boot/boot.ini ]] && sed -e 's,^setenv rootdev.*$,setenv rootdev "'"$targetuuid"'",' -i "${TempDir}"/bootfs/boot/boot.ini
|
[[ -f "${TempDir}"/bootfs/boot/boot.ini ]] && sed -e 's,^setenv rootdev.*$,setenv rootdev "'"$targetuuid"'",' -i "${TempDir}"/bootfs/boot/boot.ini
|
||||||
[[ -f "${TempDir}"/rootfs/boot/boot.ini ]] && sed -e 's,^setenv rootdev.*$,setenv rootdev "'"$targetuuid"'",' -i "${TempDir}"/rootfs/boot/boot.ini
|
[[ -f "${TempDir}"/rootfs/boot/boot.ini ]] && sed -e 's,^setenv rootdev.*$,setenv rootdev "'"$targetuuid"'",' -i "${TempDir}"/rootfs/boot/boot.ini
|
||||||
fi
|
fi
|
||||||
mkimage -C none -A arm -T script -d "${TempDir}"/bootfs/boot/boot.cmd "${TempDir}"/bootfs/boot/boot.scr >/dev/null 2>&1 || (echo "Error"; exit 1)
|
mkimage -C none -A arm -T script -d "${TempDir}"/bootfs/boot/boot.cmd "${TempDir}"/bootfs/boot/boot.scr >/dev/null 2>&1 || (echo 'Error while creating U-Boot loader image with mkimage' >&2 ; exit 1)
|
||||||
|
|
||||||
# fstab adj
|
# fstab adj
|
||||||
if [[ "$1" != "$2" ]]; then
|
if [[ "$1" != "$2" ]]; then
|
||||||
|
@ -327,7 +327,7 @@ create_armbian()
|
||||||
sed -e 's,setenv rootfstype.*,setenv rootfstype '"$FilesystemChoosen"',' -i /boot/boot.cmd
|
sed -e 's,setenv rootfstype.*,setenv rootfstype '"$FilesystemChoosen"',' -i /boot/boot.cmd
|
||||||
sed -e 's,setenv rootfstype.*,setenv rootfstype '"$FilesystemChoosen"',' -i /boot/boot.ini
|
sed -e 's,setenv rootfstype.*,setenv rootfstype '"$FilesystemChoosen"',' -i /boot/boot.ini
|
||||||
fi
|
fi
|
||||||
[[ -f /boot/boot.cmd ]] && mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr >/dev/null 2>&1 || (echo "Error"; exit 1)
|
[[ -f /boot/boot.cmd ]] && mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr >/dev/null 2>&1 || (echo 'Error while creating U-Boot loader image with mkimage' >&2 ; exit 1)
|
||||||
mkdir -p "${TempDir}"/rootfs/media/mmc/boot
|
mkdir -p "${TempDir}"/rootfs/media/mmc/boot
|
||||||
echo "${sduuid} /media/mmcboot ext4 ${mountopts[ext4]}" >> "${TempDir}"/rootfs/etc/fstab
|
echo "${sduuid} /media/mmcboot ext4 ${mountopts[ext4]}" >> "${TempDir}"/rootfs/etc/fstab
|
||||||
echo "/media/mmcboot/boot /boot none bind 0 0" >> "${TempDir}"/rootfs/etc/fstab
|
echo "/media/mmcboot/boot /boot none bind 0 0" >> "${TempDir}"/rootfs/etc/fstab
|
||||||
|
@ -403,7 +403,7 @@ show_nand_warning()
|
||||||
#
|
#
|
||||||
format_nand()
|
format_nand()
|
||||||
{
|
{
|
||||||
[[ ! -e /dev/nand ]] && echo "NAND error" && exit 1
|
[[ ! -e /dev/nand ]] && echo '/dev/nand does not exist' >&2 && exit 1
|
||||||
|
|
||||||
show_nand_warning
|
show_nand_warning
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue