AlmaLinux / raspberry-pi

AlmaLinux Raspberry Pi
122 stars 17 forks source link

More native support like RaspberryPi image #13

Closed srbala closed 1 year ago

srbala commented 2 years ago

AlmaLinux RaspberryPi image should more native support which are available in standard RaspberryPi. Following are good to have in consideration to native support ...

Sample config file created by Raspberry Pi imager below

Wifi config

# File network-config
version: 2
wifis:
  renderer: networkd
  wlan0:
    dhcp4: true
    optional: true
    access-points:
      "MyWiFi-NETWORK_SSID":
# MyWiFi-NETWORK_SSID password hash      
        password: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

User config

# File user-data
#cloud-config
hostname: raspberrypi-alma
manage_etc_hosts: true
packages:
- avahi-daemon
apt:
  conf: |
    Acquire {
      Check-Date "false";
    };

users:
- name: piuser
# review group info
  groups: users,wheel,adm,audio,video,cdrom,ftp,games,mail,input,dialout,tape,tty,disk,sys
  shell: /bin/bash
  lock_passwd: false
  passwd: $5$asdffasfasf$sdfsdfdsfsIKOYhIn5tgi9IT4NzaC
  ssh_authorized_keys:
    - ssh-ed25519 AA9txvpeSP8xKAAC3AAAE5XPc6oh39gcjAIKOYhIn5tgi9IT4NzaC1lZDI1NTgOSaXh+ piuser@example.com
  sudo: ALL=(ALL) NOPASSWD:ALL

# check this is needed
runcmd:
- sed -i 's/^s*REGDOMAIN=S*/REGDOMAIN=GB/' /etc/default/crda || true
metalefty commented 1 year ago

I'm working on this now.

metalefty commented 1 year ago

network-config won't work due to this bug until updated to 22.2 or later. https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1906187

Other stuff are working fine on my development working tree.

$ dnf info cloud-init
Last metadata expiration check: 0:11:58 ago on Wed Apr 26 00:36:26 2023.
Installed Packages
Name         : cloud-init
Version      : 22.1
Release      : 7.el9_1.alma
Architecture : noarch
Size         : 3.5 M
Source       : cloud-init-22.1-7.el9_1.alma.src.rpm
Repository   : @System
From repo    : appstream
Summary      : Cloud instance init scripts
URL          : http://launchpad.net/cloud-init
License      : ASL 2.0 or GPLv3
Description  : Cloud-init is a set of init scripts for cloud instances.  Cloud instances
             : need special scripts to run during initialization to retrieve and install
             : ssh keys and to let the user run various scripts.