Repository : ssh://git@diktynna/doc On branches: backup-redmine,main
commit 14c02fcf59d784c582414ed902a29736707650ef Author: Sven Eckelmann sven@narfation.org Date: Mon Dec 16 12:54:46 2024 +0000
doc: devtools/Kernel_hacking_Debian_image: switch to Debian trixie
14c02fcf59d784c582414ed902a29736707650ef devtools/Kernel_hacking_Debian_image.textile | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/devtools/Kernel_hacking_Debian_image.textile b/devtools/Kernel_hacking_Debian_image.textile index 6fcaf92e..ba06be53 100644 --- a/devtools/Kernel_hacking_Debian_image.textile +++ b/devtools/Kernel_hacking_Debian_image.textile @@ -23,10 +23,10 @@ qemu-img create debian.img 8G sudo mkfs.ext4 -O '^has_journal' -F debian.img sudo mkdir debian sudo mount -o loop debian.img debian -sudo debootstrap bookworm debian +sudo debootstrap trixie 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 initscripts \ +sudo systemd-nspawn -D debian apt install -y --no-install-recommends build-essential vim openssh-server less \ + pkg-config libnl-3-dev libnl-genl-3-dev libcap-dev tcpdump dbus rng-tools5 \ 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 @@ -55,6 +55,25 @@ exit 0 EOF' sudo chmod a+x debian/etc/boot.d/test-init
+sudo sh -c 'cat > debian/etc/rc.local << "EOF" +#!/bin/sh -e +# +# rc.local +# +# This script is executed at the end of each multiuser runlevel. +# Make sure that the script will "exit 0" on success or any other +# value on error. +# +# In order to enable or disable this script just change the execution +# bits. + +if test -d /etc/boot.d ; then + run-parts /etc/boot.d +fi +exit 0 +EOF' +sudo chmod a+x debian/etc/rc.local + sudo sed -i 's/^root:[^:]*:/root::/' debian/etc/shadow
sudo mkdir -p debian/etc/systemd/journald.conf.d @@ -297,7 +316,7 @@ BASE_IMG=debian.qcow2 BASE_IMG_FMT=qcow2 BOOTARGS+=("-bios" "qboot/build/bios.bin") BOOTARGS+=("-kernel" "linux-next/arch/x86/boot/bzImage") -BOOTARGS+=("-append" "root=/dev/sda rw console=hvc0 nokaslr tsc=reliable no_timer_check noreplace-smp rootfstype=ext4 rcupdate.rcu_expedited=1 reboot=t pci=lastbus=0 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 i8042.noaux=1 no_hash_pointers") +BOOTARGS+=("-append" "root=/dev/vda rw console=hvc0 nokaslr tsc=reliable no_timer_check noreplace-smp rootfstype=ext4 rcupdate.rcu_expedited=1 reboot=t pci=lastbus=0 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 i8042.noaux=1 no_hash_pointers") BOOTARGS+=("-device" "virtconsole,chardev=charconsole0,id=console0") </code></pre>