[arch-projects] [mkinitcpio PATCH 1/3] /run/initramfs: copy the whole ramfs
Tom Gundersen
teg at jklm.no
Thu Nov 17 11:08:10 EST 2011
This is useful for the future shutdown hook, and might make debugging easier,
as well as potentially opening up for other usecases (that I cannot yet imagine ;-) ).
Signed-off-by: Tom Gundersen <teg at jklm.no>
---
init | 2 +-
install/base | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/init b/init
index 7cc2d47..3c6fb81 100644
--- a/init
+++ b/init
@@ -21,7 +21,7 @@ else
mknod /dev/mem c 1 1
fi
mount -t tmpfs run /run -o nosuid,nodev,mode=755,size=10M
-mkdir /run/initramfs
+cp -ax / /run/initramfs
# parse the kernel command line
parse_cmdline
diff --git a/install/base b/install/base
index 0726fa2..84e7f02 100644
--- a/install/base
+++ b/install/base
@@ -10,6 +10,7 @@ build() {
add_binary /sbin/blkid
add_binary /bin/mount
add_binary /sbin/switch_root
+ add_binary /bin/cp
add_symlink "/etc/mtab" "/proc/self/mounts"
--
1.7.7.3
More information about the arch-projects
mailing list