diff --git a/src/minimal_overlay/bundles/passwd/.config b/src/minimal_overlay/bundles/passwd/.config new file mode 100644 index 000000000..e69de29bb diff --git a/src/minimal_overlay/bundles/passwd/01_create.sh b/src/minimal_overlay/bundles/passwd/01_create.sh new file mode 100755 index 000000000..e2c21f27e --- /dev/null +++ b/src/minimal_overlay/bundles/passwd/01_create.sh @@ -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 diff --git a/src/minimal_overlay/bundles/passwd/02_install.sh b/src/minimal_overlay/bundles/passwd/02_install.sh new file mode 100755 index 000000000..76f139c8a --- /dev/null +++ b/src/minimal_overlay/bundles/passwd/02_install.sh @@ -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 diff --git a/src/minimal_overlay/bundles/passwd/bundle.sh b/src/minimal_overlay/bundles/passwd/bundle.sh new file mode 100755 index 000000000..6de9d4e15 --- /dev/null +++ b/src/minimal_overlay/bundles/passwd/bundle.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. ../../common.sh + +./01_create.sh +./02_install.sh + +cd $SRC_DIR