History

scripts/gen_initramfs_list.sh: teach INITRAMFS_ROOT_UID and INITRAMFS_ROOT_GID that -1 means "current user".

Teach INITRAMFS_ROOT_UID and INITRAMFS_ROOT_GID that -1 means "current user".

Rob Landley committed 9 years ago

Commit 595a22a1 parent 39229202 files · +6 −8Browse files

Showing the changes to scripts (1 of 2 files). Show all

Unified · Split

scripts/gen_initramfs_list.sh+2−0
@@ -271,10 +271,12 @@ while [ $# -gt 0 ]; do · 270 unmodified lines
271 case "$arg" in271 case "$arg" in
272 "-u") # map $1 to uid=0 (root)272 "-u") # map $1 to uid=0 (root)
273 root_uid="$1"273 root_uid="$1"
274 [ "$root_uid" = "-1" ] && root_uid=$(id -u || echo 0)
274 shift275 shift
275 ;;276 ;;
276 "-g") # map $1 to gid=0 (root)277 "-g") # map $1 to gid=0 (root)
277 root_gid="$1"278 root_gid="$1"
279 [ "$root_gid" = "-1" ] && root_gid=$(id -g || echo 0)
278 shift280 shift
279 ;;281 ;;
280 "-d") # display default initramfs list282 "-d") # display default initramfs list

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t