Closed sanmai-NL closed 7 years ago
The reason that acbuild end
doesn't error out when run as non-root is that it may be able to succeed depending on the permissions inside the image being built. The rkt getting started guide is one such scenario where root is not needed.
One option to make this nicer would be to walk over the image being built looking for files with permissions acbuild can't delete, but that would be expensive.
I think I'm just going to make a PR that, when a permission denied error is encountered, just prints out a line suggesting that acbuild end
be re-run as root, which will at least provide a little direction to the user.
One nitpick though, please make it say ‘a user with appropriate privileges’ not ‘root’.
Context
acbuild.sh
:Action
As user who is member of
rkt
group on an XFS filesystem:Expected
acbuild end
succeeds or reports error that it must be run as superuser, similar toacbuild run
.Actual
Alternative case
The previous script with the image name and tag
sudo acbuild end
instead succeeds.