--- network/init.orig 2021-04-29 18:35:01.662990472 +0300 +++ network/init 2021-04-29 19:14:50.635019590 +0300 @@ -612,6 +612,15 @@ start_iscsi fi +# Grab the image before gets checked +start_network +squash=http://PXE-SERVER-ADDRESS/gentoo/image.squashfs +good_msg "Fetching $squash" +# CWD is /newroot +wget -O - $squash > ${LOOP} && good_msg "Written to ${LOOP}" +#ls -lhF /image.squashfs +unset squash + # Loop file already exists on fs, assume no mount needed, # This allows for squashfs in initrd, which can be used for (i)PXE booting if [ -e "${LOOP}" ] @@ -631,7 +640,7 @@ if [ "${USE_SSH}" = '1' ] then - start_network + #start_network start_sshd fi