Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Wed, 04 Jan 2012 03:38:18
Message-Id: 14c61e729d9612f57e1ab66b5916d6340935d847.robbat2@gentoo
1 commit: 14c61e729d9612f57e1ab66b5916d6340935d847
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 4 03:38:00 2012 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 4 03:38:00 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=14c61e72
7
8 Add a few more directories and initial device nodes to the initramfs, and improve datestamp. Based on development by WilliamH for initramfs /usr mounting.
9
10 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
11
12 ---
13 gen_initramfs.sh | 10 +++++++++-
14 1 files changed, 9 insertions(+), 1 deletions(-)
15
16 diff --git a/gen_initramfs.sh b/gen_initramfs.sh
17 index c644694..cfcfe97 100755
18 --- a/gen_initramfs.sh
19 +++ b/gen_initramfs.sh
20 @@ -13,8 +13,13 @@ append_base_layout() {
21 mkdir -p ${TEMP}/initramfs-base-temp/bin
22 mkdir -p ${TEMP}/initramfs-base-temp/etc
23 mkdir -p ${TEMP}/initramfs-base-temp/usr
24 + mkdir -p ${TEMP}/initramfs-base-temp/lib
25 + mkdir -p ${TEMP}/initramfs-base-temp/mnt
26 + mkdir -p ${TEMP}/initramfs-base-temp/run
27 + mkdir -p ${TEMP}/initramfs-base-temp/sbin
28 mkdir -p ${TEMP}/initramfs-base-temp/proc
29 mkdir -p ${TEMP}/initramfs-base-temp/temp
30 + mkdir -p ${TEMP}/initramfs-base-temp/tmp
31 mkdir -p ${TEMP}/initramfs-base-temp/sys
32 mkdir -p ${TEMP}/initramfs-temp/.initrd
33 mkdir -p ${TEMP}/initramfs-base-temp/var/lock/dmraid
34 @@ -29,9 +34,12 @@ append_base_layout() {
35 cd ${TEMP}/initramfs-base-temp/dev
36 mknod -m 660 console c 5 1
37 mknod -m 660 null c 1 3
38 + mknod -m 660 zero c 1 5
39 + mknod -m 600 tty0 c 4 0
40 mknod -m 600 tty1 c 4 1
41 + mknod -m 600 ttyS0 c 4 64
42
43 - date '+%Y%m%d' > ${TEMP}/initramfs-base-temp/etc/build_date
44 + date -u '+%Y%m%d-%H%M%S' > ${TEMP}/initramfs-base-temp/etc/build_date
45
46 cd "${TEMP}/initramfs-base-temp/"
47 find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" \