aboutsummaryrefslogtreecommitdiff
path: root/meta-yerba
diff options
context:
space:
mode:
Diffstat (limited to 'meta-yerba')
-rw-r--r--meta-yerba/recipes-core/images/yerba-image.bb11
1 files changed, 9 insertions, 2 deletions
diff --git a/meta-yerba/recipes-core/images/yerba-image.bb b/meta-yerba/recipes-core/images/yerba-image.bb
index f9e9413..4c9c5b0 100644
--- a/meta-yerba/recipes-core/images/yerba-image.bb
+++ b/meta-yerba/recipes-core/images/yerba-image.bb
@@ -5,7 +5,6 @@ inherit core-image extrausers
IMAGE_FEATURES += "ssh-server-dropbear"
-# Add doas to the list later when i feel like making a recipe
IMAGE_INSTALL = "\
packagegroup-core-boot \
packagegroup-core-base-utils \
@@ -29,10 +28,18 @@ IMAGE_INSTALL = "\
EXTRA_USERS_PARAMS = "\
groupadd storage; \
- useradd -p '' -s /bin/zsh yerba; \
+ useradd -s /bin/zsh yerba; \
usermod -aG wheel,audio,video,storage yerba; \
"
+PASSWD = "\$6\$ejafA1eayhrw94gC\$TkY3uLfma5N.dLf9z3axYKFw0OTCbGQivSGFT.Ja6SqYtnwmsYUNAGJ3qvvdxPSrNdmGVc1yI.kGCZ/TrsoX7."
+
+ROOTFS_POSTPROCESS_COMMAND += "set_yerba_password;"
+
+set_yerba_password() {
+ echo "yerba:${PASSWD}" | chpasswd -e -R ${IMAGE_ROOTFS}
+}
+
do_image_post:append() {
install -d ${IMAGE_ROOTFS}/home/yerba
chown 1000:1000 ${IMAGE_ROOTFS}/home/yerba