Skip to content

Commit

Permalink
Merging casper 1.109.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Oct 8, 2007
1 parent 9431b74 commit faa3497
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
9 changes: 8 additions & 1 deletion debian/init
Expand Up @@ -68,7 +68,12 @@ do_stop ()
return 0
fi

for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default; do
prompt=1
if grep -qs noprompt /proc/cmdline; then
prompt=
fi

for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default $(which stty); do
cache_path "${path}"
done

Expand All @@ -84,6 +89,8 @@ do_stop ()
if [ -x /usr/bin/eject ]
then
eject -p -m /live/image >/dev/null 2>&1

[ "$prompt" ] || return 0
fi

stty sane < /dev/console
Expand Down
10 changes: 10 additions & 0 deletions docs/ChangeLog.casper
@@ -1,3 +1,13 @@
casper (1.109) gutsy; urgency=low

* Cache the stty binary before ejecting the CD.
* Skip the CD eject prompt if 'noprompt' is on the kernel command line
(LP: #149159).
* Try each of (e.g.) 2.6.22-13-generic, 2.6.22-13, and 2.6.22 in turn as
directory names for driver updates (LP: #122430).

-- Colin Watson <cjwatson@ubuntu.com> Fri, 05 Oct 2007 03:24:43 +0100

casper (1.108) gutsy; urgency=low

* If CASPER_GENERATE_UUID is set, generate a random UUID in the initramfs,
Expand Down
4 changes: 4 additions & 0 deletions manpages/live-initramfs.en.7.txt
Expand Up @@ -175,6 +175,10 @@ be checked at boot time, use this parameter, otherwise they are skipped.
disables the "persistent" feature, useful if the bootloader (like syslinux) has
been installed with persistent enabled.

noprompt

Do not prompt to eject the CD on reboot.

nosudo::

This parameter disables the automatic configuration of sudo.
Expand Down
15 changes: 8 additions & 7 deletions scripts/live-premount/10driver_updates
Expand Up @@ -41,18 +41,19 @@ is_updates_path ()
# kernel flavour.

path=${1}
kbase=$(uname -r | sed 's/^\([0-9]*\.[0-9]*\.[0-9]*\)-.*/\1/')
update_dir="${path}/ubuntu-drivers/${kbase}"

if [ -d "${update_dir}" ]
then
abi="$(uname -r)"
kver="$(echo "$abi" | cut -d- -f1,2)"
kbase="$(echo "$abi" | cut -d- -f1)"
for leaf in "$abi" "$kver" "$kbase"; do
update_dir="$path/ubuntu-drivers/$leaf"
[ -d "$update_dir" ] || continue
if [ "$(echo ${update_dir}/*_${DPKG_ARCH}.deb)" != \
"${update_dir}/*_${DPKG_ARCH}.deb" ]
then
echo "${update_dir}"
return 0;
return 0
fi
fi
done

return 1;
}
Expand Down

0 comments on commit faa3497

Please sign in to comment.