diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2022-04-29 21:22:24 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2022-04-29 21:22:24 -0400 |
commit | e5a5b64c61de0b687b465fb19d8f0208df7cc14e (patch) | |
tree | 00d8967a3cf7506e37d969e484a200b68c63b2c8 /linux/patches/gen_initramfs.sh.patch | |
parent | 700a1b10b3a9d021b6a02d0f837ddfde52578634 (diff) |
add complete build system
Diffstat (limited to 'linux/patches/gen_initramfs.sh.patch')
-rw-r--r-- | linux/patches/gen_initramfs.sh.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/linux/patches/gen_initramfs.sh.patch b/linux/patches/gen_initramfs.sh.patch new file mode 100644 index 0000000..472fe37 --- /dev/null +++ b/linux/patches/gen_initramfs.sh.patch @@ -0,0 +1,31 @@ +--- usr/gen_initramfs.sh 2022-04-08 07:59:05.000000000 -0400 ++++ usr/gen_initramfs.sh.new 2022-04-21 08:51:04.635080820 -0400 +@@ -187,8 +187,8 @@ + } + + prog=$0 +-root_uid=0 +-root_gid=0 ++root_uid="squash" ++root_gid="squash" + dep_list= + cpio_list=$(mktemp ${TMPDIR:-/tmp}/cpiolist.XXXXXX) + output="/dev/stdout" +@@ -209,13 +209,13 @@ + shift + ;; + "-u") # map $1 to uid=0 (root) +- root_uid="$1" +- [ "$root_uid" = "-1" ] && root_uid=$(id -u || echo 0) ++# root_uid="$1" ++# [ "$root_uid" = "-1" ] && root_uid=$(id -u || echo 0) + shift + ;; + "-g") # map $1 to gid=0 (root) +- root_gid="$1" +- [ "$root_gid" = "-1" ] && root_gid=$(id -g || echo 0) ++# root_gid="$1" ++# [ "$root_gid" = "-1" ] && root_gid=$(id -g || echo 0) + shift + ;; + "-h") |