Repository : ssh://git@diktynna/doc On branches: backup-redmine,main
commit e56d1a0f7631e818eca1b215d19f97f208f0df3b Author: Sven Eckelmann sven@narfation.org Date: Sat May 4 21:15:50 2024 +0000
doc: devtools/Kernel_hacking_Debian_image: fix same "random" mac addresses with udev after 6d36464065601f79a352367cf099be8907d8f9aa due to shared machine-id
e56d1a0f7631e818eca1b215d19f97f208f0df3b devtools/Kernel_hacking_Debian_image.textile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/devtools/Kernel_hacking_Debian_image.textile b/devtools/Kernel_hacking_Debian_image.textile index c7403497..641de3f7 100644 --- a/devtools/Kernel_hacking_Debian_image.textile +++ b/devtools/Kernel_hacking_Debian_image.textile @@ -26,9 +26,10 @@ sudo mount -o loop debian.img debian sudo debootstrap bookworm debian sudo systemd-nspawn -D debian apt update sudo systemd-nspawn -D debian apt install --no-install-recommends build-essential vim openssh-server less \ - pkg-config libnl-3-dev libnl-genl-3-dev libcap-dev tcpdump rng-tools5 \ + pkg-config libnl-3-dev libnl-genl-3-dev libcap-dev tcpdump rng-tools5 initscripts \ trace-cmd flex bison libelf-dev libdw-dev binutils-dev libunwind-dev libssl-dev libslang2-dev liblzma-dev libperl-dev sudo systemd-nspawn -D debian systemctl enable fstrim.timer +sudo rm debian/etc/machine-id
sudo mkdir debian/root/.ssh/ ssh-add -L | sudo tee debian/root/.ssh/authorized_keys @@ -38,6 +39,7 @@ sudo sh -c 'cat > debian/etc/fstab << EOF host /host 9p trans=virtio,version=9p2000.L,posixacl,msize=524288 0 0 EOF'
+sudo mkdir -p debian/etc/boot.d/ sudo sh -c 'cat > debian/etc/boot.d/test-init << "EOF" #!/bin/sh