diff options
| author | Arslaan Pathan <[email protected]> | 2026-06-17 09:00:02 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-06-17 09:00:02 +1200 |
| commit | 00d0de56476a90b97fcdaa5b3100405352963ee6 (patch) | |
| tree | 8969e0e78270e3ee123b7f3365edef336968c272 | |
| parent | d1bb06a0a9c3151563ffd3ca9316c407b51f2af1 (diff) | |
| download | yerbalinux-00d0de56476a90b97fcdaa5b3100405352963ee6.tar.xz yerbalinux-00d0de56476a90b97fcdaa5b3100405352963ee6.zip | |
Add a proper custom image and create a user
| -rw-r--r-- | meta-yerba/recipes-core/images/yerba-image.bb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta-yerba/recipes-core/images/yerba-image.bb b/meta-yerba/recipes-core/images/yerba-image.bb index 8349def..52878a3 100644 --- a/meta-yerba/recipes-core/images/yerba-image.bb +++ b/meta-yerba/recipes-core/images/yerba-image.bb @@ -5,6 +5,7 @@ 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 \ @@ -12,24 +13,23 @@ IMAGE_INSTALL = "\ runit \ runit-serialgetty \ runit-config \ - doas \ bash \ zsh \ " EXTRA_USERS_PARAMS = "\ - useradd -p '\$6\$PUUPkVso3YF7lfnC\$dgNb9aJ3zIOmD4JlEQDwyp1Pdd9KnT0m.7XYhbT2l/ePdjIhbX1909CjutKOeXX6Ev0S/JaqNvL4cfUu/rxEV.' -s /bin/zsh yerba; \ + groupadd storage; \ + useradd -p '' -s /bin/zsh yerba; \ usermod -aG wheel,audio,video,storage yerba; \ " -do_image_post_append() { +do_image_post:append() { install -d ${IMAGE_ROOTFS}/home/yerba chown 1000:1000 ${IMAGE_ROOTFS}/home/yerba - echo "permit :wheel" > ${IMAGE_ROOTFS}/etc/doas.conf - chmod 0640 ${IMAGE_ROOTFS}/etc/doas.conf -} + # Do this later because i cant be bothered to make a doas recipe atm + # echo "permit :wheel" > ${IMAGE_ROOTFS}/etc/doas.conf + # chmod 0640 ${IMAGE_ROOTFS}/etc/doas.conf -do_image_post_append() { echo "Welcome to Yerba Linux" > ${IMAGE_ROOTFS}/etc/motd } |
