Skip to content

Commit 0369c36

Browse files
committed
Support ssh for 3.22
1 parent 925ba5b commit 0369c36

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ ARG fw_version
172172
RUN nix build "/src#\"rootfs-$fw_version\"" -o /run/rm-rootfs && \
173173
nix-collect-garbage
174174

175-
FROM nix-rootfs AS nix-emu
175+
FROM nix-rootfs AS nix-emu:$fw_version
176176

177177
ARG fw_version
178178
RUN nix build "/src#\"rm-emu-$fw_version\"" -o /result && \

nix/rootfs.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@
103103
104104
${lib.optionalString needsPatchDhcpcd "sed -i 's/wlan/eth/' /mnt/root/lib/systemd/system/dhcpcd.service"}
105105
106+
# 3.22 stopped shipping dropbear.socket on all interfaces.
107+
if ! [ -e /mnt/root/lib/systemd/system/dropbear.socket ]; then
108+
cp /mnt/root/lib/systemd/system/dropbear-usb0.socket /mnt/root/lib/systemd/system/dropbear.socket
109+
sed -i 's/.*usb0.*//' /mnt/root/lib/systemd/system/dropbear.socket
110+
ln -s /lib/systemd/system/dropbear.socket /mnt/root/etc/systemd/system/sockets.target.wants/
111+
fi
112+
106113
umount /mnt/root
107114
108115
set +x

0 commit comments

Comments
 (0)