Merge pull request #423 from crobinso/initrd-nonroot

initrd-builder: Don't error if run as non-root
This commit is contained in:
James O. D. Hunt 2020-03-30 09:56:38 +01:00 committed by GitHub
commit 0312a60287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"