Added passwd bundle to generate minimal /etc/passwd file
This commit is contained in:
parent
282004b6a3
commit
c2c102a649
0
src/minimal_overlay/bundles/passwd/.config
Normal file
0
src/minimal_overlay/bundles/passwd/.config
Normal file
10
src/minimal_overlay/bundles/passwd/01_create.sh
Executable file
10
src/minimal_overlay/bundles/passwd/01_create.sh
Executable 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
|
14
src/minimal_overlay/bundles/passwd/02_install.sh
Executable file
14
src/minimal_overlay/bundles/passwd/02_install.sh
Executable 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
|
10
src/minimal_overlay/bundles/passwd/bundle.sh
Executable file
10
src/minimal_overlay/bundles/passwd/bundle.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
. ../../common.sh
|
||||
|
||||
./01_create.sh
|
||||
./02_install.sh
|
||||
|
||||
cd $SRC_DIR
|
Loading…
x
Reference in New Issue
Block a user