From 13c0c8ffd5f280ab0b713cc5ff094caa8bb83719 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sun, 8 Oct 2017 16:10:45 -0400 Subject: [PATCH] Unminimization information should only go to motd when we are actually minimized --- live-build/auto/build | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/live-build/auto/build b/live-build/auto/build index b6361a58..367e41f8 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -121,10 +121,9 @@ rm -f /etc/update-motd.d/60-unminimize EOF chmod +x chroot/usr/local/sbin/unminimize - fi - # inform users about the unminimize script - cat > "chroot/etc/update-motd.d/60-unminimize" << EOF + # inform users about the unminimize script + cat > "chroot/etc/update-motd.d/60-unminimize" << EOF #!/bin/sh # # This file is not managed by a package. If you no longer want to @@ -135,7 +134,9 @@ echo "" echo "To restore this content, you can run the 'unminimize' command." EOF - chmod +x chroot/etc/update-motd.d/60-unminimize + chmod +x chroot/etc/update-motd.d/60-unminimize + fi + Chroot chroot "dpkg-divert --quiet --add \ --divert /usr/sbin/update-initramfs.REAL --rename \ /usr/sbin/update-initramfs"