+live-initramfs (1.157.1-1grml.01) unstable; urgency=low
+
+ * Resync with Debian's 1.157.1-1 (mentioning just the relevant changes):
+ [ Daniel Baumann ]
+ * Only snapshotting in initscript when we actually run with persistence.
+
+ [ Rene Mayrhofer ]
+ * Checking if /var/log is writable before trying to copy live.log
+ to the newly mounted root filesystem (Closes: #516914).
+
+ [ Daniel Baumann ]
+ * Adding hack to remove live specific filesystems from
+ umounfs initscript (Closes: #506410, #515718).
+ * Adding comsetic line wrapping for output of local-gen messages
+ during boot.
+ * Merging casper 1.157.
+ * Only calling install-keymap if it's actually installed, which is
+ always but in minimal images the case though (Closes: #517153).
+ * Adding silent boot parameter.
+ * Respecting media timeout even when specificing media device manually.
+ * Also allowing to use the removable keyword for specifying a live media.
+ * Adding removable-usb keyword to further restrict live media selection.
+ * Correcting check for usb when using removable-usb keyword.
+ * Correcting typo in locale bottom script.
+
+ -- Michael Prokop <mika@grml.org> Mon, 06 Apr 2009 14:01:31 +0200
+
live-initramfs (1.156.1-1grml.02) unstable; urgency=low
* Do not use full path for printf executable. [Closes: issue640]
+casper (1.157) jaunty; urgency=low
+
+ [ Emmet Hikory ]
+ * 10adduser: add Category=Favorites support for netbook-launcher
+ (LP: #334656)
+
+ [ Luke Yelavich ]
+ * scripts/casper-bottom/30accessibility && ubiquity-hooks/30accessibility:
+ - Remove the fast user switch applet from the top panel, to re-enable
+ the logout/shutdown menu options in the system menu. This is done for
+ the speech and braille accessibility profiles. Requiring several
+ keyboard shortcuts to access something that is not entirely accessible
+ yet only makes things difficult for blind/vision impaired users, and is
+ likely to cause much confusion if sed menu entries are not present.
+
+ -- Luke Yelavich <themuso@ubuntu.com> Tue, 03 Mar 2009 15:49:21 +1100
+
casper (1.156) jaunty; urgency=low
* scripts/casper-bottom/30accessibility &
filesystem should reside. If it did not find something usable, the normal scan
for block devices is performed.
+Instead of specifing an actual device name, the keyword 'removable' can be used
+to limit the search of acceptable live media to removable type only. Note that
+if you want to further restrict the media to usb mass storage only, you can use
+the 'removable-usb' keyword.
+
{live-media-encryption|encryption}=**TYPE**::
live-initramfs will mount the encrypted rootfs TYPE, asking the passphrase,
lead to problems by applications like "mono" which store binary paths on
installation.
+ silent
+
+If you boot with the normal quiet parameter, live-initramfs hides most messages
+of its own. When adding silent, it hides all.
+
textonly
Start up to text-mode shell prompts, disabling the graphical user interface.
export SHOWMOUNTS
;;
+ silent)
+ SILENT="Yes"
+ export SILENT
+ ;;
+
textonly)
TEXTONLY="Yes"
export TEXTONLY
{
timeout="${1}"
- # first look at the one specified in the command line
- if [ ! -z "${LIVE_MEDIA}" ]
- then
- if check_dev "null" "${LIVE_MEDIA}" "skip_uuid_check"
- then
- return 0
- fi
- fi
-
# don't start autodetection before timeout has expired
if [ -n "${LIVE_MEDIA_TIMEOUT}" ]
then
fi
fi
+ # first look at the one specified in the command line
+ case "${LIVE_MEDIA}" in
+ removable-usb)
+ for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -vE "/(loop|ram|dm-|fd)")
+ do
+ if [ "$(cat ${sysblock}/removable)" = "1" ]
+ then
+ if readlink ${sysblock}/device | grep -q usb
+ then
+ for dev in $(subdevices "${sysblock}")
+ do
+ if check_dev "${dev}"
+ then
+ return 0
+ fi
+ done
+ fi
+ fi
+ done
+ ;;
+
+ removable)
+ for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -vE "/(loop|ram|dm-|fd)")
+ do
+ if [ "$(cat ${sysblock}/removable)" = "1" ]
+ then
+ for dev in $(subdevices "${sysblock}")
+ do
+ if check_dev "${dev}"
+ then
+ return 0
+ fi
+ done
+ fi
+ done
+ ;;
+
+ *)
+ if [ ! -z "${LIVE_MEDIA}" ]
+ then
+ if check_dev "null" "${LIVE_MEDIA}" "skip_uuid_check"
+ then
+ return 0
+ fi
+ fi
+ ;;
+ esac
+
# or do the scan of block devices
for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -vE "/(loop|ram|dm-|fd)")
do
exec 1>&6 6>&-
exec 2>&7 7>&-
kill ${tailpid}
- cp live.log "${rootmnt}/var/log/"
+ [ -w "${rootmnt}/var/log/" ] && cp live.log "${rootmnt}/var/log/" 2>/dev/null
}
log_begin_msg "Setting up locales"
+# Cosmetic line wrapping for output of local-gen
+echo
+
# live-initramfs script
if [ -e /root/etc/default/locale ]
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
+
+ if [ -z "${SILENT}" ]
+ then
+ chroot /root /usr/sbin/locale-gen
+ else
+ chroot /root /usr/sbin/locale-gen > /dev/null 2>&1
+ fi
fi
log_end_msg
live-preseed /root console-setup/codesetcode '' false
sed -i 's/CONSOLE_SCREEN=$/CONSOLE_SCREEN=setupcon/; t END; b; : END; n; b END' /root/etc/init.d/usplash
-else
+elif [ -e /root/usr/sbin/install-keymap ]
+then
chroot /root /usr/sbin/install-keymap ${kbd}
live-preseed /root debian-installer/keymap "${kbd}"
live-preseed /root kbd-chooser/method "${kbd}"
# live-initramfs header
-if [ -n "${NOXAUTOCONFIG}" ]
-then
- exit 0
-fi
-
-if [ ! -x /root/usr/bin/X ]
+if [ -n "${NOXAUTOCONFIG}" ] || [ ! -x /root/usr/bin/X ] || [ -n "${XDRIVER}" ]
then
exit 0
fi
. /live.vars
-if [ -n "$XDRIVER" ]
-then
- mount -o bind /sys /root/sys
- mount -o bind /proc /root/proc
- mount -o bind /dev /root/dev
+mount -o bind /sys /root/sys
+mount -o bind /proc /root/proc
+mount -o bind /dev /root/dev
chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
set xserver-xorg/autodetect_video_card false
set xserver-xorg/config/device/driver ${XDRIVER}
EOF
- chroot /root dexconf
+chroot /root dexconf
- umount /root/sys
- umount /root/proc
- umount /root/dev
-fi
+umount /root/sys
+umount /root/proc
+umount /root/dev
log_end_msg
fi
}
+remove_applet ()
+{
+ # Code to remove an applet from the default panel setup
+ # This is rather hacky, but I can't think of a one or two line regular
+ # expression to do this any more efficiently. Patches welcome. In
+ # addition, setting these via gconf also doesn't work for some reason.
+
+ local line_no prior_line next_line
+
+ line_no="$(grep -n "<string>$1</string>" /root/usr/share/gconf/defaults/05_panel-default-setup.entries | cut -f 1 -d :)"
+ prior_line="$((line_no-1))"
+ next_line="$((line_no+1))"
+
+ sed -i -n "${prior_line},${next_line}!p" /root/usr/share/gconf/defaults/05_panel-default-setup.entries
+
+ chroot /root update-gconf-defaults
+}
+
case ${ACCESS} in
access=v1)
# Lesser Visual Impairment
gct -s -t bool /apps/gksu/disable-grab true
gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity
+ remove_applet fast_user_switch
;;
braille=ask)
laptop_detect
chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.orca
fi
+
+ remove_applet fast_user_switch
;;
access=m1)