mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
initramfs post-update 99-uboot: add verbose logging, no actual changes
This commit is contained in:
committed by
igorpecovnik
parent
6417a22151
commit
2d2fec85d8
@@ -2,9 +2,16 @@
|
||||
|
||||
. /etc/armbian-release
|
||||
|
||||
echo "update-initramfs: Converting to u-boot format" >&2
|
||||
tempname="/boot/uInitrd-$1"
|
||||
mkimage -A $INITRD_ARCH -O linux -T ramdisk -C gzip -n uInitrd -d $2 $tempname > /dev/null
|
||||
echo "update-initramfs: Armbian: Converting to u-boot format: ${tempname}" >&2
|
||||
mkimage -A $INITRD_ARCH -O linux -T ramdisk -C gzip -n uInitrd -d $2 $tempname
|
||||
|
||||
echo "update-initramfs: Armbian: Symlinking ${tempname} to /boot/uInitrd" >&2
|
||||
ln -sfv $(basename $tempname) /boot/uInitrd || {
|
||||
echo "update-initramfs: Symlink failed, moving ${tempname} to /boot/uInitrd" >&2
|
||||
mv -v $tempname /boot/uInitrd
|
||||
}
|
||||
|
||||
echo "update-initramfs: Armbian: done." >&2
|
||||
|
||||
ln -sf $(basename $tempname) /boot/uInitrd > /dev/null 2>&1 || mv $tempname /boot/uInitrd
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user