Added passwd bundle to generate minimal /etc/passwd file

This commit is contained in:
Tobias Faller 2021-08-15 18:21:15 +02:00
parent 282004b6a3
commit c2c102a649
4 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
. ../../common.sh
mkdir -p $DEST_DIR/etc
echo 'root::0:0:Superuser:/:/bin/sh' > $DEST_DIR/etc/passwd
cd $SRC_DIR

View File

@ -0,0 +1,14 @@
#!/bin/sh
set -e
. ../../common.sh
# With '--remove-destination' all possibly existing soft links in
# '$OVERLAY_ROOTFS' will be overwritten correctly.
cp -r --remove-destination $DEST_DIR/* \
$OVERLAY_ROOTFS
echo "Bundle '$BUNDLE_NAME' has been installed."
cd $SRC_DIR

View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
. ../../common.sh
./01_create.sh
./02_install.sh
cd $SRC_DIR