From 6cae294e83ff160e6957d72c23653a661912b4bc Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 5 Mar 2020 16:04:59 -0500 Subject: [PATCH] initrd-builder: Don't error if run as non-root Nothing inherently requires root here. If the ROOTFS_DIR is only root accessible then the operation may fail, but better IMO to let that fail naturally Fixes: #422 Signed-off-by: Cole Robinson --- initrd-builder/initrd_builder.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/initrd-builder/initrd_builder.sh b/initrd-builder/initrd_builder.sh index bc5692966c..5313502894 100755 --- a/initrd-builder/initrd_builder.sh +++ b/initrd-builder/initrd_builder.sh @@ -70,8 +70,6 @@ OK "init is installed" use AGENT_BIN env variable to change the expected agent binary name" OK "Agent is installed" -[ "$(id -u)" -eq 0 ] || die "$0: must be run as root" - # initramfs expects /init ln -sf /sbin/init "${ROOTFS}/init"