From d1bb06a0a9c3151563ffd3ca9316c407b51f2af1 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Tue, 16 Jun 2026 20:56:14 +1200 Subject: Custom image --- kas.yml | 1 + meta-yerba/conf/distro/yerba.conf | 2 -- meta-yerba/recipes-core/images/yerba-image.bb | 35 +++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 meta-yerba/recipes-core/images/yerba-image.bb diff --git a/kas.yml b/kas.yml index 6342f41..5a1f634 100644 --- a/kas.yml +++ b/kas.yml @@ -3,6 +3,7 @@ header: machine: yerba-x86_64 distro: yerba +target: yerba-image local_conf_header: # some stuff in meta-oe is broken, im so angry diff --git a/meta-yerba/conf/distro/yerba.conf b/meta-yerba/conf/distro/yerba.conf index b285616..d6b3677 100644 --- a/meta-yerba/conf/distro/yerba.conf +++ b/meta-yerba/conf/distro/yerba.conf @@ -21,5 +21,3 @@ VIRTUAL_RUNTIME_login_manager = "busybox" # some quality assurance stuff? idk tbh ERROR_QA:append = " textrel host-user-contaminated" WARN_QA:append = " buildpaths ldflags" - - 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 +} -- cgit v1.2.3