Update 'syslinux.md'

master
D4VID 9 months ago
parent 0cde20f614
commit bedb0da92d

@ -39,7 +39,7 @@ UI menu.c32
LABEL FIKS OS
MENU LABEL FIKS
KERNEL vmlinuz
APPEND initrd=initrd.img boot=live components fetch=tftp://192.168.11.11/image/fiks-image.squashfs
APPEND initrd=initrd.img debug components boot=nfs ip=dhcp root=/dev/nfs nfsroot=192.168.11.11:/srv/nfs/live/ ro
TEXT HELP
Lmao Yeet!
ENDTEXT
@ -66,4 +66,49 @@ LABEL FIKS OS
## Client system
`mksquashfs / /opt/fiks-image.squashfs -e /proc /sys /dev /tmp /run /mnt /media /var/cache /var/tmp /opt`
~~`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) .`
`cd main`
`/etc/initramfs-tools/modules`
```
e1000
igb
r8169
nfs
nfsv3
nfsv4
sunrpc
lockd
fscache
overlay
```
`find . | cpio -H newc -o | gzip -9 > /srv/tftp/initrd.img`
`mksquashfs / /opt/fiks-image.squashfs -e /proc /sys /dev /tmp /run /mnt /media /var/cache /var/tmp /opt`
`scp initrd.img server@192.168.11.11:/srv/nfs/`
## Back on the server
`mount -o loop /srv/nfs/fiks-image.squashfs /srv/nfs/tmp/`
`cp -a /srv/nfs/tmp/* /srv/nfs/live/`
`mkdir live/{dev,proc,run,sys,tmp}`

Loading…
Cancel
Save