A workaround to avoid rebuilding the initramfs is to use TWO initramfs's. The second one contains just a symlink from scripts/casper-bottom/25disable_cdrom.mount to /bin/true. I.e.:
cd $(mktemp -d) mkdir -p scripts/casper-bottom/ ln -s /bin/true scripts/casper-bottom/25disable_cdrom.mount find . | cpio -o -H newc | gzip > initrd-1755863.img
Copy the generated initrd-1755863.img to your TFTP/HTTP server, and pass it in the kernel cmdline. In iPXE vernacular:
kernel /images/cdrom/casper/vmlinuz initrd=initrd.lz initrd=initrd-1755863.img boot=casper netboot=nfs nfsroot=10.161.254.11:/cdrom file=/cdrom/preseed/ubuntu.seed -- initrd /images/cdrom/casper/initrd.lz initrd /liveclone/initrd-1755863.img
A workaround to avoid rebuilding the initramfs is to use TWO initramfs's. The second one contains just a symlink from scripts/ casper- bottom/ 25disable_ cdrom.mount to /bin/true. I.e.:
cd $(mktemp -d) casper- bottom/ casper- bottom/ 25disable_ cdrom.mount
mkdir -p scripts/
ln -s /bin/true scripts/
find . | cpio -o -H newc | gzip > initrd-1755863.img
Copy the generated initrd-1755863.img to your TFTP/HTTP server, and pass it in the kernel cmdline. In iPXE vernacular:
kernel /images/ cdrom/casper/ vmlinuz initrd=initrd.lz initrd= initrd- 1755863. img boot=casper netboot=nfs nfsroot= 10.161. 254.11: /cdrom file=/cdrom/ preseed/ ubuntu. seed -- cdrom/casper/ initrd. lz initrd- 1755863. img
initrd /images/
initrd /liveclone/