Skip to content

Commit

Permalink
🐧 ARM enhancements (kairos-io#257)
Browse files Browse the repository at this point in the history
* 🐧 Add net.ifnames to ARM images

* 🐧 Add wpa_supplicant to openSUSE ARM image
  • Loading branch information
mudler authored Oct 21, 2022
1 parent 889e6c2 commit ca53fe6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions images/Dockerfile.opensuse-arm-rpi
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,5 @@ RUN zypper in -y \
timezone \
tmux \
vim \
wpa_supplicant \
which && zypper cc
4 changes: 2 additions & 2 deletions overlay/files-opensuse-arm-rpi/etc/cos/bootargs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ set kernel=/boot/vmlinuz
# https://en.opensuse.org/HCL:Raspberry_Pi3#DSI_output_not_supported_by_VC4_driver,
# https://bugzilla.opensuse.org/show_bug.cgi?id=1181683 and https://github.com/raspberrypi/linux/issues/4020
if [ -n "$recoverylabel" ]; then
set kernelcmd="console=tty1 console=ttyS0,115200 root=live:LABEL=$recoverylabel rd.live.dir=/ rd.live.squashimg=$img panic=5 modprobe.blacklist=vc4 rd.cos.oemtimeout=10"
set kernelcmd="console=tty1 console=ttyS0,115200 root=live:LABEL=$recoverylabel net.ifnames=1 rd.live.dir=/ rd.live.squashimg=$img panic=5 modprobe.blacklist=vc4 rd.cos.oemtimeout=10"
else
set kernelcmd="console=tty1 console=ttyS0,115200 root=LABEL=$label cos-img/filename=$img panic=5 security=selinux selinux=1 modprobe.blacklist=vc4 rd.cos.oemtimeout=10 rd.cos.oemlabel=COS_OEM"
set kernelcmd="console=tty1 console=ttyS0,115200 root=LABEL=$label net.ifnames=1 cos-img/filename=$img panic=5 security=selinux selinux=1 modprobe.blacklist=vc4 rd.cos.oemtimeout=10 rd.cos.oemlabel=COS_OEM"
fi

set initramfs=/boot/initrd
2 changes: 1 addition & 1 deletion overlay/files/etc/cos/bootargs.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set kernel=/boot/vmlinuz
if [ -n "$recoverylabel" ]; then
# Boot arguments when the image is used as recovery
set kernelcmd="console=tty1 console=ttyS0 root=live:LABEL=$recoverylabel rd.live.dir=/ rd.live.squashimg=$img panic=5 rd.cos.oemlabel=COS_OEM"
set kernelcmd="console=tty1 console=ttyS0 root=live:LABEL=$recoverylabel net.ifnames=1 rd.live.dir=/ rd.live.squashimg=$img panic=5 rd.cos.oemlabel=COS_OEM"
else
# Boot arguments when the image is used as active/passive
set kernelcmd="console=tty1 console=ttyS0 root=LABEL=$label net.ifnames=1 cos-img/filename=$img rd.emergency=reboot rd.shell=0 panic=5 security=selinux rd.cos.oemlabel=COS_OEM selinux=1 fsck.mode=force fsck.repair=yes systemd.crash_reboot=yes"
Expand Down

0 comments on commit ca53fe6

Please sign in to comment.