mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-15 14:43:51 +00:00
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:
parent
8a9aa41247
commit
6cae294e83
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user