Changeset 9409


Ignore:
Timestamp:
2007-10-23T08:23:26+02:00 (10 years ago)
Author:
nbd
Message:

Use current UID for initramfs root user:group

Set the CONFIG_INITRAMFS_ROOT_{U,G}ID kernel variables to the current
user, so that all files end up being owned by root in the final
initramfs image.

Signed-off-by: Jeremy Kerr <jk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/kernel-defaults.mk

    r9408 r9409  
    8080                grep -v INITRAMFS $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config 
    8181                echo 'CONFIG_INITRAMFS_SOURCE="$(TARGET_DIR)"' >> $(LINUX_DIR)/.config 
    82                 echo 'CONFIG_INITRAMFS_ROOT_UID=0' >> $(LINUX_DIR)/.config 
    83                 echo 'CONFIG_INITRAMFS_ROOT_GID=0' >> $(LINUX_DIR)/.config 
     82                echo 'CONFIG_INITRAMFS_ROOT_UID=$(shell id -u)' >> $(LINUX_DIR)/.config 
     83                echo 'CONFIG_INITRAMFS_ROOT_GID=$(shell id -g)' >> $(LINUX_DIR)/.config 
    8484    endef 
    8585  else 
Note: See TracChangeset for help on using the changeset viewer.