Closed arturo-seijas closed 1 year ago
$CRAFT_OVERLAY
has the mounted base
, which in your case is bare
. groupadd
is complaining about the missing /etc
, so you can fix that one:
overlay-script: |
mkdir $CRAFT_OVERLAY/etc
chmod 755 $CRAFT_OVERLAY/etc
groupadd -R $CRAFT_OVERLAY --gid 2000 nginx
useradd -R $CRAFT_OVERLAY --system --gid 2000 --uid 2000 --no-create-home nginx
Because of the bare base, the resulting ROCK has just those two files (plus pebble).
That did the trick, thank you. I had tried adding the repository but it was failing due to the permission issues.
Hi!
I currently have the following rockcraft.yaml where
rockcraft pack
is failing due to the files/etc/group
and/etc/passwd
not being present. Considering the I'm building on Ubuntu I would have expected those two files to be added to the bare image and staged.Related to #23
Thank you