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 <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-03-05 16:04:59 -05:00
parent 8a9aa41247
commit 6cae294e83

View File

@ -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"