File SL-Micro.kiwi of Package whiskerlinux-1.0.0

<image>
    <name>Whisker-Linux</name>
    <type>iso</type>
    <size>2.0</size> <!-- Adjust size according to your requirements -->

    <!-- Filesystem configuration -->
    <filesystem>
        <type>ext4</type>
        <label>root</label>
    </filesystem>

    <!-- Base system packages -->
    <packages>
        <!-- Base System Packages -->
        <include>bash</include>
        <include>coreutils</include>
        <include>sysvinit</include>
        <include>network-scripts</include>
        <include>dhclient</include>

        <!-- Desktop Environment - Adjust based on Whisker Linux -->
        <include>kde-plasma</include> 
        <include>konsole</include>
        <include>firefox</include>  <!-- Firefox for browsing -->
        <include>thunar</include>  <!-- Thunar file manager -->

        <!-- Optional Tools -->
        <include>cloud-init</include> <!-- Optional: Cloud-init for cloud deployments -->
        <include>openssh-server</include>  <!-- SSH server -->
        <include>chrony</include>  <!-- Time synchronization -->
    </packages>

    <!-- Enable necessary services -->
    <services>
        <start>NetworkManager</start>  <!-- NetworkManager for networking -->
        <start>sshd</start>  <!-- SSH service -->
        <start>chrony</start>  <!-- Time synchronization -->
    </services>

    <!-- Post-installation script -->
    <postinstall>
        <!-- Adjust configurations, enable services, etc. -->
        # Configure /etc/fstab for partition handling
        cat > /etc/fstab.script <<EOF
#!/bin/bash
set -eux

# Setup for overlayfs or any specific configuration
/usr/sbin/setup-fstab-for-overlayfs

# For systems with /var on a separate partition
if [ "$(findmnt -snT / -o SOURCE)" != "$(findmnt -snT /var -o SOURCE)" ]; then
    gawk -i inplace '$2 == "/var" { $4 = $4",x-growpart.grow,x-systemd.growfs" } { print $0 }' /etc/fstab
fi
EOF
        chmod +x /etc/fstab.script

        # Set default runlevel (no GUI for minimal, typically runlevel 3)
        baseSetRunlevel 3
        echo FONT="eurlatgr.psfu" >> /etc/vconsole.conf
    </postinstall>

</image>

openSUSE Build Service is sponsored by