[SCM] wiki-content branch, master, updated. 02cc4dd0b2242858d81eff19dc0db51235ecf7ce
Michal Suchanek
hramrach at centrum.cz
Sun Jan 16 06:42:11 UTC 2011
The following commit has been merged in the master branch:
commit 02cc4dd0b2242858d81eff19dc0db51235ecf7ce
Author: Michal Suchanek <hramrach at centrum.cz>
Date: Sat Jan 15 17:42:52 2011 +0100
Unionmount guide
diff --git a/devel/rfc/unionmount.mdwn b/devel/rfc/unionmount.mdwn
index e69de29..33dcb1b 100644
--- a/devel/rfc/unionmount.mdwn
+++ b/devel/rfc/unionmount.mdwn
@@ -0,0 +1,23 @@
+===To build debian-live with unionmount you will need===
+
+ * A linux kernel with unionmount support
+ - Get a kernel from [Valerie Aurora's git repo](http://git.kernel.org/?p=linux/kernel/git/val/linux-2.6.git;a=shortlog;h=refs/heads/ext2_works). This is a work in progress but using this kernel you should be able to boot Debian Live. You can check the repo for more up-to-date branches.
+ - Configure and build the kernel. A suggested [configuration file for i686 based on stock Debian configuration](config-2.6.36-rc5-i686+). Setting or unsetting some configuration options may not work yet.
+
+ make-kpkg --rootcmd fakeroot --initrd --append-to-version -um-i686 kernel-image kernel-headers
+
+ - Unfortunately kernel-package and initramfs-tools package maintainers can't agree on a way to tell initramfs-tools to generate an initramfs so you will need to generate one in a [hook](zzz-initramfs.sh) (put in chroot_local-hooks). Also cross-building i686 on amd64 seems broken.
+
+
+ * Mount command with unionmount support
+ - here is a [patch](util-linux-union.patch) which you can apply to Squeeze util-linux and rebuild. It may break some other options, I am not sure how those defines are supposed to work. You only need the mount package.
+ * Put your mount command into your initramfs
+ - a [patch](unionmount_initramfs_mount.patch) you can apply to live-initramfs either directly or put it in chroot_local-patches
+ * Tell live-initramfs to use unionmount instead of aufs
+ - Use some arguments like these with lb config
+
+ -k um-i686+ \
+ --bootappend-live union=unionmount \
+ --packages "httpfs2 less open-iscsi links2" \
+ --linux-packages linux-image-2.6.36-rc5 \
+
diff --git a/devel/rfc/unionmount_initramfs_mount.patch b/devel/rfc/unionmount_initramfs_mount.patch
new file mode 100644
index 0000000..0903ace
--- /dev/null
+++ b/devel/rfc/unionmount_initramfs_mount.patch
@@ -0,0 +1,10 @@
+--- /usr/share/initramfs-tools/hooks/live~ 2010-07-11 01:19:32.000000000 +0200
++++ /usr/share/initramfs-tools/hooks/live 2010-07-12 17:58:54.000000000 +0200
+@@ -223,3 +223,7 @@
+ manual_add_modules iscsi_tcp
+ manual_add_modules crc32c
+ fi
++
++# UnionMount
++ # only mount from patched util-linux can do this currently
++ copy_exec /bin/mount /bin/mount_full
diff --git a/devel/rfc/zzz-initramfs.sh b/devel/rfc/zzz-initramfs.sh
new file mode 100755
index 0000000..ebd8b8a
--- /dev/null
+++ b/devel/rfc/zzz-initramfs.sh
@@ -0,0 +1,7 @@
+#!/bin/bash -x
+for i in boot/vmlinuz* ; do
+ kernel="$(basename "$i")"
+ version="${kernel##vmlinuz-}"
+ initrd="boot/initrd.img-${version}"
+ [ -f "$initrd" ] || update-initramfs -c -k "$version" || true
+done
--
wiki-content
More information about the debian-live-changes
mailing list