Skip to content
Snippets Groups Projects
Commit 4a142953 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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: default avatarJeremy Kerr <jk@ozlabs.org>

SVN-Revision: 9409
parent 4bb2c88f
No related branches found
No related tags found
No related merge requests found
......@@ -79,8 +79,8 @@ ifeq ($(KERNEL),2.6)
mv $(LINUX_DIR)/.config $(LINUX_DIR)/.config.old
grep -v INITRAMFS $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config
echo 'CONFIG_INITRAMFS_SOURCE="$(TARGET_DIR)"' >> $(LINUX_DIR)/.config
echo 'CONFIG_INITRAMFS_ROOT_UID=0' >> $(LINUX_DIR)/.config
echo 'CONFIG_INITRAMFS_ROOT_GID=0' >> $(LINUX_DIR)/.config
echo 'CONFIG_INITRAMFS_ROOT_UID=$(shell id -u)' >> $(LINUX_DIR)/.config
echo 'CONFIG_INITRAMFS_ROOT_GID=$(shell id -g)' >> $(LINUX_DIR)/.config
endef
else
define Kernel/SetInitramfs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment