mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Small fixes
This commit is contained in:
@@ -127,11 +127,10 @@ install_common()
|
||||
chroot $SDCARD /bin/bash -c "dpkg -i /tmp/debs/$RELEASE/${CHOSEN_ROOTFS}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1
|
||||
|
||||
# freeze armbian packages
|
||||
if [[ $BSPFREEZE == "yes" ]]; then
|
||||
display_alert "Freeze armbian packages" "$BOARD" "info"
|
||||
if [[ "$BRANCH" != "default" ]]; then MINIBRANCH="-"$BRANCH; fi
|
||||
if [[ $BSPFREEZE == yes ]]; then
|
||||
display_alert "Freezing Armbian packages" "$BOARD" "info"
|
||||
chroot $SDCARD /bin/bash -c "apt-mark hold ${CHOSEN_KERNEL} ${CHOSEN_KERNEL/image/headers} \
|
||||
linux-u-boot-${BOARD}-${BRANCH} linux-dtb${MINIBRANCH}-${LINUXFAMILY}" >> $DEST/debug/install.log 2>&1
|
||||
linux-u-boot-${BOARD}-${BRANCH} ${CHOSEN_KERNEL/image/dtb}" >> $DEST/debug/install.log 2>&1
|
||||
fi
|
||||
|
||||
# copy boot splash images
|
||||
|
||||
@@ -51,7 +51,7 @@ mkdir -p $DEST/debug
|
||||
rm -f $DEST/debug/*.log > /dev/null 2>&1
|
||||
date +"%d_%m_%Y-%H_%M_%S" > $DEST/debug/timestamp
|
||||
# delete compressed logs older than 7 days
|
||||
(cd $DEST/debug && find . -name '*.tgz' -atime +7 -delete) > /dev/null
|
||||
(cd $DEST/debug && find . -name '*.tgz' -mtime +7 -delete) > /dev/null
|
||||
|
||||
# Script parameters handling
|
||||
for i in "$@"; do
|
||||
|
||||
Reference in New Issue
Block a user