raspberrypi / piserver

Raspberry Pi Server wizard to serve Raspbian to network booting Pis
319 stars 60 forks source link

> > I want to PXE boot my pi's fully configured, one as a pihole, one for FlightRadar24, etc. #137

Open MilesAheadToo opened 2 years ago

MilesAheadToo commented 2 years ago

These instructions are failing for a number of reasons, including that bsdtar is not longer supported.

Does anyone have updated instructions?

sudo bash
mkdir /tmp/mnt_boot /tmp/mnt_root
mount -o ro /dev/sdX1 /tmp/mnt_boot
mount -o ro /dev/sdX2 /tmp/mnt_root
cd /tmp/mnt_boot
bsdtar --numeric-owner --format gnutar --one-file-system -cpf ../boot.tar .
cd /tmp/mnt_root
bsdtar --numeric-owner --format gnutar --one-file-system -cpf ../root.tar .
cd /tmp
umount /tmp_mnt_boot
umount /tmp_mnt_root
xz boot.tar
xz root.tar
/var/lib/piserver/scripts/convert.sh boot.tar.xz root.tar.xz Your_custom_OS.tar.xz
rm boot.tar.xz root.tar.xz
  1. The image you can import into piserver is now at /tmp/Your_custom_OS.tar.xz

This is failing as of now as pxz is not available on buster.

Originally posted by @FaberfoX in https://github.com/raspberrypi/piserver/issues/55#issuecomment-615567956

berlin4apk commented 2 years ago

It seems you piserver is not up to date https://github.com/raspberrypi/piserver/commit/e05a84ab4042121f3f17ae819b360cf1a23ecfb0#diff-e924755d0840914bed401cc1c66b0f2f2fd0b5e399cd881dfd1e2c06a5bc31b7