aboutsummaryrefslogtreecommitdiff
path: root/meta-yerba/recipes-core/images/yerba-image.bb
blob: 52878a3098bfc3634c8f7bdf32679845f81ed157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
SUMMARY = "Yerba Linux image"
LICENSE = "MIT"

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 \
    ${CORE_IMAGE_EXTRA_INSTALL} \
    runit \
    runit-serialgetty \
    runit-config \
    bash \
    zsh \
    "

EXTRA_USERS_PARAMS = "\
    groupadd storage; \
    useradd -p '' -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
    
    # 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

    echo "Welcome to Yerba Linux" > ${IMAGE_ROOTFS}/etc/motd
}