diff options
| -rw-r--r-- | kas.yml | 1 | ||||
| -rw-r--r-- | meta-yerba/conf/distro/yerba.conf | 2 | ||||
| -rw-r--r-- | meta-yerba/recipes-core/images/yerba-image.bb | 35 |
3 files changed, 36 insertions, 2 deletions
@@ -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 +} |
