aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/usr/gen_initramfs.sh
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-01-05 00:02:35 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-01-16 00:25:22 +0900
commit4538f41305c3f2c35463c996663dbf6307030ad7 (patch)
tree3ea57f126a5e2fb321890bdc8ec2670eefbeddb6 /usr/gen_initramfs.sh
parentinitramfs: generate dependency list and cpio at the same time (diff)
downloadwireguard-linux-4538f41305c3f2c35463c996663dbf6307030ad7.tar.xz
wireguard-linux-4538f41305c3f2c35463c996663dbf6307030ad7.zip
initramfs: add default_cpio_list, and delete -d option support
When CONFIG_INITRAMFS_SOURCE is empty, the Makefile passes the -d option to gen_initramfs.sh to create the default initramfs, which contains /dev, /dev/console, and /root. This commit simplifies the default behavior; remove the -d option, and add the default cpio list. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'usr/gen_initramfs.sh')
-rwxr-xr-xusr/gen_initramfs.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/usr/gen_initramfs.sh b/usr/gen_initramfs.sh
index 49a4e22147b5..e6808a8c3b2b 100755
--- a/usr/gen_initramfs.sh
+++ b/usr/gen_initramfs.sh
@@ -28,7 +28,6 @@ $0 [-o <file>] [-l <dep_list>] [-u <uid>] [-g <gid>] {-d | <cpio_source>} ...
<cpio_source> File list or directory for cpio archive.
If <cpio_source> is a .cpio file it will be used
as direct input to initramfs.
- -d Output the default cpio list.
All options except -o and -l may be repeated and are interpreted
sequentially and immediately. -u and -g states are preserved across
@@ -43,18 +42,6 @@ field() {
shift $1 ; echo $1
}
-default_initramfs() {
- cat <<-EOF >> ${output}
- # This is a very simple, default initramfs
-
- dir /dev 0755 0 0
- nod /dev/console 0600 0 0 c 5 1
- dir /root 0700 0 0
- # file /kinit usr/kinit/kinit 0755 0 0
- # slink /init kinit 0755 0 0
- EOF
-}
-
filetype() {
local argv1="$1"
@@ -263,9 +250,6 @@ while [ $# -gt 0 ]; do
[ "$root_gid" = "-1" ] && root_gid=$(id -g || echo 0)
shift
;;
- "-d") # display default initramfs list
- default_initramfs
- ;;
"-h")
usage
exit 0