summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-07-16 21:14:42 +0200
committermaximilian attems <maks@debian.org>2006-07-16 21:14:42 +0200
commit8e9ecf2b5f9ced135e29d12fbe53c727a248934d (patch)
tree1da4e5ddf056478481e0484e4bc08dc09aa90ad7
parent7b658ecddad7e848e6c3c5d347c46d3b11aa1988 (diff)
big ubuntu merge:
- changelog - typos + whitespace + comments + quoting - vga16fb
-rw-r--r--debian/changelog150
-rw-r--r--debian/initramfs-tools.install2
-rw-r--r--debian/initramfs-tools.postinst4
-rw-r--r--hook-functions2
-rwxr-xr-xhooks/kernelextras5
-rwxr-xr-xinit8
-rwxr-xr-xmkinitramfs13
-rw-r--r--scripts/local13
-rwxr-xr-xupdate-initramfs6
9 files changed, 180 insertions, 23 deletions
diff --git a/debian/changelog b/debian/changelog
index ddecf2d..8a519b4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,20 @@
+initramfs-tools (0.70) unstable; urgency=low
+
+ * Reduce diff against 0.69ubuntu3:
+ - hook-functions: Fix kernel typo.
+ - hooks/kernelextras: Fix comment and add vga16fb too.
+ - init: Whitespace cleanup, add one more quiet check.
+ - mkinitramfs: Use check_minkver instead of dpkg itself. Whitespace
+ cleanup and add quoting.
+ - scripts/local: Whitespace cleanup and add a comment.
+ - update-initramfs: Add quoting + whitespace fix.
+ - changelog: for noise reduction add 0.69ubuntu{1,2,3}, all 0.40ubuntu*,
+ 0.36ubuntu1 and missing 0.29 + 0.28 entries.
+ - initramfs-tools.install, initramfs-tools.postinst and
+ initramfs-tools.preinst merge 0.69ubuntu3.
+
+ -- maximilian attems <maks@sternwelten.at> Sun, 16 Jul 2006 20:23:41 +0200
+
initramfs-tools (0.69b) unstable; urgency=high
* debian/initramfs-tools.preinst: Don't depend upon shipped directories
@@ -16,6 +33,30 @@ initramfs-tools (0.69b) unstable; urgency=high
-- maximilian attems <maks@sternwelten.at> Fri, 14 Jul 2006 00:31:30 +0200
+initramfs-tools (0.69ubuntu3) edgy; urgency=low
+
+ * debian/initramfs-tools.install, debian/initramfs-tools.preinst,
+ debian/initramfs-tools.postinst: Copy default modules file in the
+ postinst (when it's actually available) rather than in the preinst (when
+ it isn't). Copy it from /usr/share/initramfs-tools/ rather than from
+ /usr/share/doc/initramfs-tools/examples/, per policy.
+
+ -- Colin Watson <cjwatson@ubuntu.com> Thu, 13 Jul 2006 10:04:26 +0100
+
+initramfs-tools (0.69ubuntu2) edgy; urgency=low
+
+ * debian/initramfs-tools.preinst: Make sure /etc/initramfs-tools and
+ /etc/initramfs-tools/conf.d exist before trying to write to them.
+
+ -- Colin Watson <cjwatson@ubuntu.com> Thu, 13 Jul 2006 09:19:05 +0100
+
+initramfs-tools (0.69ubuntu1) edgy; urgency=low
+
+ [ Jeff Bailey ]
+ * Merge from debian unstable.
+
+ -- Jeff Bailey <jbailey@ubuntu.com> Wed, 12 Jul 2006 19:22:22 -0400
+
initramfs-tools (0.69) unstable; urgency=low
* scripts/local-premount/suspend, scripts/local-premount/resume: Rename
@@ -590,6 +631,84 @@ initramfs-tools (0.42) unstable; urgency=low
-- maximilian attems <maks@sternwelten.at> Mon, 5 Dec 2005 12:59:59 +0100
+initramfs-tools (0.40ubuntu32) dapper; urgency=low
+
+ * Revert 0.40ubuntu31. This isn't as trivial as it should be.
+
+ -- Matt Zimmerman <mdz@ubuntu.com> Sun, 21 May 2006 10:17:50 -0700
+
+initramfs-tools (0.40ubuntu31) dapper; urgency=low
+
+ * scripts/local-premount/resume: Print a message when a resume is about to
+ begin (LP#41137)
+
+ -- Matt Zimmerman <mdz@ubuntu.com> Fri, 19 May 2006 15:14:53 -0700
+
+initramfs-tools (0.40ubuntu30) dapper; urgency=low
+
+ * This release brought to you by Fujitsu hard drives, which have forced
+ me to rewrite all my most recent initramfs-tools changes from memory.
+ * Include arcmsr module in the scsi module list (launchpad.net/40075)
+ * Abstract out the kernel minversion checking stuff into the function
+ library, so we can reuse it to check minversion requirements for hook
+ scripts as well (such as udev, which requires >= 2.6.15 in dapper)
+ * Bump the kernel minversion to 2.6.15 on hppa and ia64, since they used
+ initrd-tools with their 2.6.12 kernels in breezy, not initramfs-tools.
+ * If mkinitramfs fails due to minversion not being met, don't bail out
+ of update-initramfs, but just exit 0, so upgrades don't halt on it.
+ * Conditionalise the use of lvm and md in mkinitramfs so it's a no-op if
+ you don't have those packages installed, but allows for smooth upgrades
+ if you have older versions that don't ship their own hooks yet.
+ * Make prereqs conditional on the script/hook actually existing. From
+ now on, this means that 'PREREQ="udev"' means "run udev first, iff it
+ happens to be installed". Having the files exist on the filesystem if
+ you have a HARD dependency should be enforced with package dependencies.
+ * Add ohci1394 and sbp2 to the scsi module list (launchpad.net/37479)
+ * Move framebuffer setup from usplash to scripts/local-top/framebuffer
+ so that people booting with vga=1234 but no splash will still get a
+ framebuffer instead of a useless black console (launchpad.net/27669)
+
+ -- Adam Conrad <adconrad@ubuntu.com> Tue, 16 May 2006 19:51:08 +1000
+
+initramfs-tools (0.40ubuntu29) dapper; urgency=low
+
+ * Make "update-initramfs -u" try to find the running kernel *after* it
+ attempts to search the symbolic link list and its own sha1 list.
+ Using this as a fallback, rather than the default, should solve most
+ upgrade issues, where people found their initramfs was half-baked.
+
+ -- Adam Conrad <adconrad@ubuntu.com> Wed, 19 Apr 2006 13:51:35 +1000
+
+initramfs-tools (0.40ubuntu28) dapper; urgency=low
+
+ * Add raid10 module to the generic module list (launchpad.net/28028)
+ * Add cpqarray to the scsi module list (launchpad.net/{26632,35202})
+ * Unset debug before we run the real init (launchpad.net/24095)
+ * Add the gdth module to the default scsi list (launchpad.net/31542)
+
+ -- Adam Conrad <adconrad@ubuntu.com> Fri, 24 Mar 2006 04:33:44 +1100
+
+initramfs-tools (0.40ubuntu27) dapper; urgency=low
+
+ * Drop the evms, lvm and md local-top scripts; they're all provided by
+ their own packages now. This makes the depdencies rather nicer.
+
+ -- Scott James Remnant <scott@ubuntu.com> Thu, 23 Mar 2006 18:04:48 +0000
+
+initramfs-tools (0.40ubuntu26) dapper; urgency=low
+
+ * Make the md and evms local-top scripts pre-requisite the udev one.
+
+ -- Scott James Remnant <scott@ubuntu.com> Thu, 23 Mar 2006 17:54:32 +0000
+
+initramfs-tools (0.40ubuntu25) dapper; urgency=low
+
+ * Move the "loop waiting for the root filesystem" code from the udev
+ premount script to the local mountroot() function where it truly
+ belongs.
+
+ -- Scott James Remnant <scott@ubuntu.com> Wed, 22 Mar 2006 16:28:46 +0000
+
initramfs-tools (0.40ubuntu24) dapper; urgency=low
* Add support for LSI Logic's Fusion MPT SAS and FC controllers as well.
@@ -879,7 +998,6 @@ initramfs-tools (0.36ubuntu5) dapper; urgency=low
-- Scott James Remnant <scott@ubuntu.com> Mon, 21 Nov 2005 08:40:20 +0000
-
initramfs-tools (0.36ubuntu4) dapper; urgency=low
* Replace all occurances of /etc/mkinitramfs in mkinitramfs with $CONFDIR,
@@ -935,6 +1053,15 @@ initramfs-tools (0.37) unstable; urgency=low
-- maximilian attems <maks@sternwelten.at> Wed, 26 Oct 2005 09:22:58 +0200
+initramfs-tools (0.36ubuntu1) dapper; urgency=low
+
+ * Forced version bump to minimise the scary until I have a chance to dig
+ through the ubuntu:debian diffs and do a proper merge of their changes.
+ * Remove the "Loading, please wait..." message from the top of init, as
+ we now have other fairly early visual feedback, and this is just ugly.
+
+ -- Adam Conrad <adconrad@ubuntu.com> Wed, 26 Oct 2005 11:27:36 +1000
+
initramfs-tools (0.36) unstable; urgency=low
"Sunny Autumn Release"
@@ -1054,6 +1181,27 @@ initramfs-tools (0.30) unstable; urgency=low
-- maximilian attems <maks@sternwelten.at> Fri, 30 Sep 2005 19:34:55 +0200
+initramfs-tools (0.29) breezy; urgency=low
+
+ "Beauty is a form of genius - is higher, indeed, than genius, as it
+ needs no explanation."
+ - Oscar Wilde
+
+ * hook-functions (auto_add_modules): Add advansys.
+
+ * debian/rules: Make sure hooks and scripts are chmod +x
+
+ * init: Add start of debug command line option.
+
+ -- Jeff Bailey <jbailey@ubuntu.com> Tue, 20 Sep 2005 15:47:42 -0400
+
+initramfs-tools (0.28) breezy; urgency=low
+
+ * Run udevstart after loading block drivers - should fix resume from
+ hibernate on non-LVM systems.
+
+ -- Matthew Garrett <mjg59@srcf.ucam.org> Tue, 20 Sep 2005 01:13:31 +0100
+
initramfs-tools (0.27) unstable; urgency=low
* Remove unused BUSYBOX config option as we use busybox anyway.
diff --git a/debian/initramfs-tools.install b/debian/initramfs-tools.install
index add5a7f..5514c2e 100644
--- a/debian/initramfs-tools.install
+++ b/debian/initramfs-tools.install
@@ -3,8 +3,8 @@ mkinitramfs-kpkg usr/sbin
init usr/share/initramfs-tools
scripts usr/share/initramfs-tools
conf/initramfs.conf etc/initramfs-tools
-conf/modules etc/initramfs-tools
hooks usr/share/initramfs-tools
hook-functions usr/share/initramfs-tools
+conf/modules usr/share/initramfs-tools
update-initramfs usr/sbin
debian/script usr/share/bug/initramfs-tools
diff --git a/debian/initramfs-tools.postinst b/debian/initramfs-tools.postinst
index a8df95e..5f46777 100644
--- a/debian/initramfs-tools.postinst
+++ b/debian/initramfs-tools.postinst
@@ -2,6 +2,10 @@
set -e
+if [ ! -e /etc/initramfs-tools/modules ]; then
+ cp /usr/share/initramfs-tools/modules /etc/initramfs-tools/
+fi
+
# Regenerate initramfs on upgrade
if [ "$1" = "configure" -a -n "$2" ]; then
update-initramfs -u
diff --git a/hook-functions b/hook-functions
index fe10cfe..9b1bd24 100644
--- a/hook-functions
+++ b/hook-functions
@@ -243,7 +243,7 @@ check_minkver()
;;
esac
if dpkg --compare-versions "${curversion}" lt "${minversion}"; then
- echo "W: kernerl ${curversion} too old for initramfs on ${DPKG_ARCH}" >&2
+ echo "W: kernel ${curversion} too old for initramfs on ${DPKG_ARCH}" >&2
echo "W: not generating requested initramfs for kernel ${curversion}" >&2
exit 2
fi
diff --git a/hooks/kernelextras b/hooks/kernelextras
index 815dd25..6bbd6b9 100755
--- a/hooks/kernelextras
+++ b/hooks/kernelextras
@@ -15,7 +15,7 @@ prereqs)
;;
esac
-# Hooks for loading loading extra kernel bits into the initramfs
+# Hooks for loading extra kernel bits into the initramfs
. /usr/share/initramfs-tools/hook-functions
@@ -36,6 +36,9 @@ for x in ${MODULESDIR}/initrd/*; do
force_load ${x}
done
+# And add vga16fb for usplash to use as well
+manual_add_modules vga16fb
+
if [ ${fbcon} = "y" ]; then
force_load fbcon
fi
diff --git a/init b/init
index 2beb597..f66281c 100755
--- a/init
+++ b/init
@@ -31,7 +31,7 @@ export ROOT=
# Bring in the main config
. /conf/initramfs.conf
for i in conf/conf.d/*; do
- [ -f ${i} ] && . ${i}
+ [ -f ${i} ] && . ${i}
done
. /scripts/functions
@@ -105,7 +105,7 @@ for x in $(cat /proc/cmdline); do
done
if [ -z ${NORESUME} ]; then
- export resume=${RESUME}
+ export resume=${RESUME}
fi
depmod -a
@@ -120,9 +120,9 @@ load_modules
log_end_msg
maybe_break premount
-log_begin_msg "Running /scripts/init-premount"
+[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/init-premount"
run_scripts /scripts/init-premount
-log_end_msg
+[ "$quiet" != "y" ] && log_end_msg
maybe_break mount
log_begin_msg "Mounting root file system..."
diff --git a/mkinitramfs b/mkinitramfs
index a0bec9e..6c048df 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -84,7 +84,7 @@ fi
. "${CONFDIR}/initramfs.conf"
EXTRA_CONF=''
for i in ${CONFDIR}/conf.d/* /usr/share/initramfs-tools/conf.d/*; do
- EXTRA_CONF="${EXTRA_CONF} $(basename $i | grep '^[a-z0-9][a-z0-9\._-]*$' | grep -v '\.dpkg-.*$')";
+ EXTRA_CONF="${EXTRA_CONF} $(basename $i | grep '^[a-z0-9][a-z0-9\._-]*$' | grep -v '\.dpkg-.*$')";
done
for i in ${EXTRA_CONF}; do
. ${CONFDIR}/conf.d/${i}
@@ -102,10 +102,11 @@ else
version="${1}"
fi
-if dpkg --compare-versions "${version}" lt 2.6.12; then
- echo "Kernel version too old. initramfs-tools requires at least 2.6.12."
- exit 1
-fi
+# Check that we're using a new enough kernel version, first for ourselves,
+# then for each of the hooks, which can have a MINKVER variable defined
+check_minkver ${version}
+check_minkver ${version} /usr/share/initramfs-tools/hooks
+check_minkver ${version} ${CONFDIR}/hooks
case "${version}" in
/lib/modules/*/[!/]*)
@@ -195,7 +196,7 @@ done
echo "DPKG_ARCH=${DPKG_ARCH}" > ${DESTDIR}/conf/arch.conf
copy_exec "${CONFDIR}/initramfs.conf" /conf
for i in ${EXTRA_CONF}; do
- copy_exec ${CONFDIR}/conf.d/${i} /conf/conf.d
+ copy_exec "${CONFDIR}/conf.d/${i}" /conf/conf.d
done
echo "ROOT=${ROOT}" > ${DESTDIR}/conf/conf.d/root
diff --git a/scripts/local b/scripts/local
index a565885..8510088 100644
--- a/scripts/local
+++ b/scripts/local
@@ -25,17 +25,18 @@ mountroot ()
log_end_msg 0
else
log_end_msg 1 || true
- fi
- if [ -x /sbin/usplash_write ]; then
- /sbin/usplash_write "TIMEOUT 15" || true
- fi
- fi
+ fi
+ if [ -x /sbin/usplash_write ]; then
+ /sbin/usplash_write "TIMEOUT 15" || true
+ fi
+ fi
- # We've given up, but we'll let the user fix matters if they can
+ # We've given up, but we'll let the user fix matters if they can
while [ ! -e "${ROOT}" ]; do
panic "ALERT! ${ROOT} does not exist. Dropping to a shell!"
done
+ # Get the root filesystem type
eval $(fstype < ${ROOT})
[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-premount"
diff --git a/update-initramfs b/update-initramfs
index 71cc90d..866609e 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -68,7 +68,7 @@ generate_initramfs()
if [ "${verbose}" = 1 ]; then
OPTS="-v $OPTS"
fi
- if mkinitramfs $OPTS "${initramfs}" "${version}"; then
+ if mkinitramfs "${OPTS}" "${initramfs}" "${version}"; then
set_sha1
else
mkinitramfs_return="$?"
@@ -312,8 +312,8 @@ while getopts "k:cudyvtb:h?" flag; do
takeover="1"
;;
b)
- BOOTDIR="${OPTARG}"
- if [ ! -d $BOOTDIR ]; then
+ BOOTDIR="${OPTARG}"
+ if [ ! -d "${BOOTDIR}" ]; then
echo "Error: ${BOOTDIR} is not a directory."
exit 1
fi