aboutsummaryrefslogtreecommitdiff
path: root/meta-yerba
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-06-16 20:56:14 +1200
committerArslaan Pathan <[email protected]>2026-06-16 20:56:14 +1200
commitd1bb06a0a9c3151563ffd3ca9316c407b51f2af1 (patch)
treecebff8460ae5e0cd7c32fb160e0379191faaa9f2 /meta-yerba
parentd356ec4872a460581a5054acfc7a79cf8cec1e83 (diff)
downloadyerbalinux-d1bb06a0a9c3151563ffd3ca9316c407b51f2af1.tar.xz
yerbalinux-d1bb06a0a9c3151563ffd3ca9316c407b51f2af1.zip
Custom image
Diffstat (limited to 'meta-yerba')
-rw-r--r--meta-yerba/conf/distro/yerba.conf2
-rw-r--r--meta-yerba/recipes-core/images/yerba-image.bb35
2 files changed, 35 insertions, 2 deletions
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
+}