Verifying md5 of installed deb packages with debsums (#3955)
* Typo in packaga name * WIP: Test for packages integrity just before closing images * Working debsum check * Dialog is not needed * Optimisations - uninstall debsums as we don't need it later on * Cosmetics Assuming this is related to both Ubuntu and Debian Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
This commit is contained in:
parent
7466687a77
commit
047a2447f6
@ -7,6 +7,7 @@ crda
|
||||
cron
|
||||
dbus
|
||||
dbus-user-session
|
||||
debsums
|
||||
dmsetup
|
||||
fdisk
|
||||
gnupg
|
||||
|
||||
1
config/cli/bullseye/main/packages.uninstall
Normal file
1
config/cli/bullseye/main/packages.uninstall
Normal file
@ -0,0 +1 @@
|
||||
debsums
|
||||
@ -6,6 +6,7 @@ cpio
|
||||
cron
|
||||
dbus
|
||||
dbus-user-session
|
||||
debsums
|
||||
dmsetup
|
||||
fdisk
|
||||
gnupg
|
||||
|
||||
1
config/cli/buster/main/packages.uninstall
Normal file
1
config/cli/buster/main/packages.uninstall
Normal file
@ -0,0 +1 @@
|
||||
debsums
|
||||
@ -7,6 +7,7 @@ crda
|
||||
cron
|
||||
dbus
|
||||
dbus-user-session
|
||||
debsums
|
||||
dmsetup
|
||||
fdisk
|
||||
gnupg
|
||||
|
||||
1
config/cli/focal/main/packages.uninstall
Normal file
1
config/cli/focal/main/packages.uninstall
Normal file
@ -0,0 +1 @@
|
||||
debsums
|
||||
@ -6,6 +6,7 @@ cpio
|
||||
cron
|
||||
dbus
|
||||
dbus-user-session
|
||||
debsums
|
||||
dmsetup
|
||||
fdisk
|
||||
gnupg
|
||||
|
||||
1
config/cli/jammy/main/packages.uninstall
Normal file
1
config/cli/jammy/main/packages.uninstall
Normal file
@ -0,0 +1 @@
|
||||
debsums
|
||||
@ -6,6 +6,7 @@ cpio
|
||||
cron
|
||||
dbus
|
||||
dbus-user-session
|
||||
debsums
|
||||
dmsetup
|
||||
fdisk
|
||||
gnupg
|
||||
|
||||
1
config/cli/sid/main/packages.uninstall
Normal file
1
config/cli/sid/main/packages.uninstall
Normal file
@ -0,0 +1 @@
|
||||
debsums
|
||||
@ -334,6 +334,14 @@ create_rootfs_cache()
|
||||
[[ ${EVALPIPE[0]} -ne 0 ]] && exit_with_error "Installation of Armbian desktop packages for ${BRANCH} ${BOARD} ${RELEASE} ${DESKTOP_APPGROUPS_SELECTED} ${DESKTOP_ENVIRONMENT} ${BUILD_MINIMAL} failed"
|
||||
fi
|
||||
|
||||
# stage: check md5 sum of installed packages. Just in case.
|
||||
display_alert "Check MD5 sum of installed packages" "info"
|
||||
eval "LC_ALL=C LANG=C sudo chroot $SDCARD /bin/bash -e -c 'dpkg-query -f "'\${binary:Package}\\n'" -W | xargs debsums'" \
|
||||
${PROGRESS_LOG_TO_FILE:+' | tee -a $DEST/${LOG_SUBPATH}/debootstrap.log'} \
|
||||
${OUTPUT_VERYSILENT:+' >/dev/null 2>/dev/null'} ';EVALPIPE=(${PIPESTATUS[@]})'
|
||||
|
||||
[[ ${EVALPIPE[0]} -ne 0 ]] && exit_with_error "MD5 sums check of installed packages failed"
|
||||
|
||||
# Remove packages from packages.uninstall
|
||||
|
||||
display_alert "Uninstall packages" "$PACKAGE_LIST_UNINSTALL" "info"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user