summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-02-27 09:39:30 +0100
committermaximilian attems <maks@debian.org>2006-02-27 09:39:30 +0100
commit236d8183a72e0de357a743bc909ea25e8bd1995e (patch)
treed668e91fb383107b1f883abae7e96a6057e96311
parent833ebf13b59f2cc2e9af15f2df3727f4e09bec41 (diff)
downloadinitramfs-tools-236d8183a72e0de357a743bc909ea25e8bd1995e.tar.gz
initramfs-tools-236d8183a72e0de357a743bc909ea25e8bd1995e.zip
hardcoded root support
-rw-r--r--debian/changelog11
-rwxr-xr-xinit4
-rwxr-xr-xmkinitramfs3
3 files changed, 14 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index bef47a5..d4858ff 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,7 +5,8 @@ initramfs-tools (0.53) unstable; urgency=high
Otherwise this builds initramfs for newer handbuild trees too.
* Resync with 0.40ubuntu24:
- - mptspi already included
+ - New conf.d dir for config snippet.
+ - mptspi already included.
- keep nfsmount for now, we don't want to add further busybox deps.
- adds mptfc and mptsas modules (closes: #341930)
- adds MODULES=netboot support (closes: #352669)
@@ -17,7 +18,13 @@ initramfs-tools (0.53) unstable; urgency=high
but adds the sha1sum for update-initramfs. Reset takeover=0.
(closes: #353809)
- -- maximilian attems <maks@sternwelten.at> Thu, 23 Feb 2006 16:59:56 +0100
+ * init: Move the ROOT export up, so we actually source the hardcoded device
+ in initramfs.conf. (closes: #352958)
+
+ * mkinitramfs: When invoked with -r switch pass the hardcoded root device to
+ /etc/mkinitramfs/conf.d/root inside the initramfs.
+
+ -- maximilian attems <maks@sternwelten.at> Mon, 27 Feb 2006 01:45:56 +0100
initramfs-tools (0.52b) unstable; urgency=high
diff --git a/init b/init
index 1e4e2fd..f69b3e8 100755
--- a/init
+++ b/init
@@ -21,6 +21,9 @@ mknod /dev/null c 1 3
export DPKG_ARCH=
. /conf/arch.conf
+# Export it for root hardcoding
+export ROOT=
+
# Bring in the main config
. /conf/initramfs.conf
for i in conf/conf.d/*; do
@@ -33,7 +36,6 @@ export break=
export init=/sbin/init
export quiet=n
export readonly=y
-export ROOT=
export resume=${RESUME}
export rootmnt=/root
export debug=
diff --git a/mkinitramfs b/mkinitramfs
index 06e892d..a72865b 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -37,7 +37,7 @@ while true; do
shift
;;
-r)
- # ignore (FIXME: manpage says differently?!?)
+ ROOT="$2"
shift 2
;;
--supported-host-version)
@@ -188,6 +188,7 @@ copy_exec "${CONFDIR}/initramfs.conf" /conf
for i in ${EXTRA_CONF}; do
copy_exec ${CONFDIR}/conf.d/${i} /conf/conf.d
done
+echo "ROOT=${ROOT}" > ${DESTDIR}/conf/conf.d/root
# Busybox
rm -f ${DESTDIR}/bin/sh