mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-06 16:31:35 +00:00
Unminimization information should only go to motd when we are actually minimized
This commit is contained in:
parent
cc3cb4e0d8
commit
13c0c8ffd5
@ -121,10 +121,9 @@ rm -f /etc/update-motd.d/60-unminimize
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
chmod +x chroot/usr/local/sbin/unminimize
|
chmod +x chroot/usr/local/sbin/unminimize
|
||||||
fi
|
|
||||||
|
|
||||||
# inform users about the unminimize script
|
# inform users about the unminimize script
|
||||||
cat > "chroot/etc/update-motd.d/60-unminimize" << EOF
|
cat > "chroot/etc/update-motd.d/60-unminimize" << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# This file is not managed by a package. If you no longer want to
|
# 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."
|
echo "To restore this content, you can run the 'unminimize' command."
|
||||||
EOF
|
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 \
|
Chroot chroot "dpkg-divert --quiet --add \
|
||||||
--divert /usr/sbin/update-initramfs.REAL --rename \
|
--divert /usr/sbin/update-initramfs.REAL --rename \
|
||||||
/usr/sbin/update-initramfs"
|
/usr/sbin/update-initramfs"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user