diff options
| author | Arslaan Pathan <[email protected]> | 2026-06-19 20:16:23 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-06-19 20:16:23 +1200 |
| commit | 3501c630aaa82112b5b5232f26491e9186b49539 (patch) | |
| tree | 83f6105be5deea20b859d8352bc85dd124bdf9fb /meta-yerba | |
| parent | a85d0ba935902c95053cbf636eb526231bb2ebd9 (diff) | |
| download | yerbalinux-3501c630aaa82112b5b5232f26491e9186b49539.tar.xz yerbalinux-3501c630aaa82112b5b5232f26491e9186b49539.zip | |
IVE BEEN DOING THIS FOR AGES, WHY DOES THE PASSWD NOT PASSWDDDDD :heavysob:
Diffstat (limited to 'meta-yerba')
| -rw-r--r-- | meta-yerba/recipes-core/images/yerba-image.bb | 11 |
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 |
