home · contact · privacy
Fix. master
authorChristian Heller <c.heller@plomlompom.de>
Mon, 25 Aug 2025 14:24:51 +0000 (16:24 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 25 Aug 2025 14:24:51 +0000 (16:24 +0200)
trixie/scripts/minimize_installation.sh

index 942bd1a554fd73e5642fb819d0417a92a142da15..4025315a313d316a46846cd0cf25faddb2bf4d10 100755 (executable)
@@ -26,13 +26,14 @@ prefixed_msg_no_nl "collect packages deemed '${TOK_REQ}' by Debian: "
 dpkg-query -Wf '${Package} ${Priority}\n' | grep " ${TOK_REQ}" | cut -d' ' -f1 > "${PATH_LIST_UNSORTED}"
 sort "${PATH_LIST_UNSORTED}" > "${PATH_LIST_WHITE}"
 
-prefixed_msg 'collect installed packages outside this selection …'
+prefixed_msg '\ncollect installed packages outside this selection …'
 dpkg-query -Wf '${Package}\n' > "${PATH_LIST_UNSORTED}"
 sort "${PATH_LIST_UNSORTED}" > "${PATH_LIST_ALL_PACKAGES}"
 comm -3 "${PATH_LIST_ALL_PACKAGES}" "${PATH_LIST_WHITE}" > "${PATH_LIST_BLACK}"
 
 prefixed_msg 'apt-mark auto from diff …'
-apt-mark auto < "${PATH_LIST_BLACK}" > /dev/null
+BLACKLISTED=$(cat "${PATH_LIST_BLACK}")
+apt-mark auto ${BLACKLISTED} > /dev/null
 rm "${PATH_LIST_UNSORTED}" "${PATH_LIST_ALL_PACKAGES}" "${PATH_LIST_WHITE}" "${PATH_LIST_BLACK}"
 
 prefixed_msg 'install or mark as manually installed packages from our own selections …'