some more patches for the live-bottom scripts
Hi all,
I think it is better to not frighten poor users with the debug output of
our initramfs scripts. Here are some patches that silence them. If you
want to have debug output available for later use, better stuff it into
a log file.
I did not get any response for my first patch. I see that the maintainer
of the live-initramfs package is debian-live@lists.debian.org so I
assume that this is the right place to send patches to. Is this correct?
Greetings
Ronny
--- 10adduser.orig 2009-01-07 20:09:38.000000000 +0100
+++ 10adduser 2009-01-07 19:58:29.000000000 +0100
@@ -58,7 +58,7 @@
set passwd/user-uid
EOF
-if ! grep "${USERNAME}" /root/etc/passwd
+if ! grep "${USERNAME}" /root/etc/passwd >/dev/null
then
echo "The default user (${USERNAME}) is not present,"
first_user=$(grep '^[^:]*:[^:]*:[12]\?[0-9][0-9][0-9][0-9]:' /root/etc/passwd | head -1 | cut -f1 -d ':')
--- 14locales.orig 2009-01-07 20:09:52.000000000 +0100
+++ 14locales 2009-01-07 19:37:09.000000000 +0100
@@ -113,7 +113,7 @@
printf 'LANG="%s"\n' "${LANG}" >> /root/etc/default/locale
printf 'LANG="%s"\n' "${LANG}" >> /root/etc/environment
printf '%s %s\n' "${LANG}" "${codepage}" > /root/etc/locale.gen
- chroot /root /usr/sbin/locale-gen
+ chroot /root /usr/sbin/locale-gen >/dev/null 2>&1
fi
log_end_msg
--- 20xconfig.orig 2009-01-08 09:37:22.000000000 +0100
+++ 20xconfig 2009-01-08 09:39:20.000000000 +0100
@@ -82,7 +82,7 @@
${setoptions}
EOF
-DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 live-reconfigure /root xserver-xorg 2>&1 \
+live-reconfigure /root xserver-xorg 2>&1 \
| grep -v "overwriting possibly-customised configuration" \
| grep -v "file; backup in /etc/X11/xorg.conf"
umount /root/sys
Reply to: