From d2a0306bb9622e8139cac5550b9a1b06677a9896 Mon Sep 17 00:00:00 2001 From: D4VID Date: Mon, 23 Dec 2024 17:16:37 +0000 Subject: [PATCH] Update 'syslinux.md' --- syslinux.md | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/syslinux.md b/syslinux.md index 756ac32..2f55bd7 100644 --- a/syslinux.md +++ b/syslinux.md @@ -66,16 +66,6 @@ LABEL FIKS OS ## Client system -~~`apt install live-build live-config`~~ - -~~`mkdir live-fiks && cd live-fiks`~~ - -~~`lb config -b netboot --net-root-path "/srv/nfs" --net-root-server "192.168.11.11"`~~ - -~~`lb build`~~ - -~~`cd ..`~~ - `mkdir initrd-workdir && cd initrd-workdir` `unmkinitramfs /boot/initrd.img-$(uname -r) .` @@ -100,7 +90,20 @@ overlay `find . | cpio -H newc -o | gzip -9 > /srv/tftp/initrd.img` Disable systemd-resolved (requires writable /etc/resolve.conf): -`systemctl mask systemd-resolved` +`systemctl mask systemd-resolved.service` +`systemctl mask systemd-hostnamed.service` +`systemctl mask systemd-timesyncd.service` +`systemctl mask systemd-update-utmp.service` +`systemctl mask systemd-update-utmp-runlevel.service` + +`systemctl mask ModemManager.service` +`systemctl mask man-db.service` +`systemctl mask logrotate.service` +`systemctl mask grub-initrd-fallback.service` +`systemctl mask grub-common.service` +`systemctl mask snapd` + +`systemctl enable tmp.mount` `mksquashfs / /opt/fiks-image.squashfs -e /proc /sys /dev /tmp /run /mnt /media /var/cache /var/tmp /opt` @@ -114,4 +117,16 @@ Disable systemd-resolved (requires writable /etc/resolve.conf): `cp -a /srv/nfs/tmp/* /srv/nfs/live/` -`mkdir live/{dev,proc,run,sys,tmp}` +`mkdir -p live/{dev,proc,run,sys,tmp}` + +`mkdir -p live/var/tmp` + + +`etc/fstab` + +``` +192.168.11.11:/srv/nfs/live / nfs nolock,ro 0 0 +tmpfs /var/tmp tmpfs defaults,nosuid,nodev,mode=1777,size=64M 0 1 +``` + +