diff options
| author | Arslaan Pathan <[email protected]> | 2026-06-16 20:56:14 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-06-16 20:56:14 +1200 |
| commit | d1bb06a0a9c3151563ffd3ca9316c407b51f2af1 (patch) | |
| tree | cebff8460ae5e0cd7c32fb160e0379191faaa9f2 /meta-yerba/recipes-core/images | |
| parent | d356ec4872a460581a5054acfc7a79cf8cec1e83 (diff) | |
| download | yerbalinux-d1bb06a0a9c3151563ffd3ca9316c407b51f2af1.tar.xz yerbalinux-d1bb06a0a9c3151563ffd3ca9316c407b51f2af1.zip | |
Custom image
Diffstat (limited to 'meta-yerba/recipes-core/images')
| -rw-r--r-- | meta-yerba/recipes-core/images/yerba-image.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-yerba/recipes-core/images/yerba-image.bb b/meta-yerba/recipes-core/images/yerba-image.bb new file mode 100644 index 0000000..8349def --- /dev/null +++ b/meta-yerba/recipes-core/images/yerba-image.bb @@ -0,0 +1,35 @@ +SUMMARY = "Yerba Linux image" +LICENSE = "MIT" + +inherit core-image extrausers + +IMAGE_FEATURES += "ssh-server-dropbear" + +IMAGE_INSTALL = "\ + packagegroup-core-boot \ + packagegroup-core-base-utils \ + ${CORE_IMAGE_EXTRA_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; \ + usermod -aG wheel,audio,video,storage yerba; \ + " + +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_image_post_append() { + echo "Welcome to Yerba Linux" > ${IMAGE_ROOTFS}/etc/motd +} |
