diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 48 |
1 files changed, 0 insertions, 48 deletions
@@ -227,54 +227,6 @@ apt = $(shell which apt || which apt-get) | |||
227 | apt-get-update-stamp: | 227 | apt-get-update-stamp: |
228 | @if $(stale); then set -x; sudo $(apt) update && touch $@; fi | 228 | @if $(stale); then set -x; sudo $(apt) update && touch $@; fi |
229 | 229 | ||
230 | samizdat.iso: patched.iso | ||
231 | cp --reflink $< $@ | ||
232 | |||
233 | patched.iso: gold.iso rootfs/samizdat.patch.btrfs | ||
234 | rm -f $@~tmp | ||
235 | cp --reflink $< $@~tmp | ||
236 | sudo xorrisofs -iso-level 3 -- \ | ||
237 | -indev $@~tmp \ | ||
238 | -outdev $@~tmp \ | ||
239 | -return_with FAILURE 32 \ | ||
240 | -pathspecs on \ | ||
241 | -follow link \ | ||
242 | -add /rootfs/z00.btrfs=rootfs/samizdat.patch.btrfs -- \ | ||
243 | -follow default \ | ||
244 | -as mkisofs -graft-points \ | ||
245 | -b grub/i386-pc/eltorito.img \ | ||
246 | -no-emul-boot -boot-info-table \ | ||
247 | --embedded-boot "${samizdat_grub_efi_dir}"/embedded.img \ | ||
248 | --protective-msdos-label | ||
249 | mv $@~tmp $@ | ||
250 | |||
251 | gold.iso: rootfs/seed.iso reused-child | ||
252 | sudo grub-efi.sh | ||
253 | ! grep 'vmlinuz.*nbdroot' -r ${samizdat_grub_efi_dir} | ||
254 | exit 1; initrd.sh | ||
255 | rm -f $@~tmp | ||
256 | cp --reflink $< $@~tmp | ||
257 | sudo xorrisofs -iso-level 3 -- \ | ||
258 | -indev $@~tmp \ | ||
259 | -outdev $@~tmp \ | ||
260 | -return_with FAILURE 32 \ | ||
261 | -pathspecs on \ | ||
262 | -rm_r linux -- \ | ||
263 | -add linux="${samizdat_linux_dir}" -- \ | ||
264 | -rm_r "${gpg_iso_path}" -- \ | ||
265 | -add "${gpg_iso_path}=${GPG_INPUT_DIR}" -- \ | ||
266 | -rm_r grub -- \ | ||
267 | -add grub="${samizdat_grub_efi_dir}"/grub -- \ | ||
268 | -chown_r 0 / -- \ | ||
269 | -chgrp_r 0 / -- \ | ||
270 | -chmod_r go-rwx "${gpg_iso_path}" -- \ | ||
271 | -as mkisofs -graft-points \ | ||
272 | -b grub/i386-pc/eltorito.img \ | ||
273 | -no-emul-boot -boot-info-table \ | ||
274 | --embedded-boot "${samizdat_grub_efi_dir}"/embedded.img \ | ||
275 | --protective-msdos-label | ||
276 | mv $@~tmp $@ | ||
277 | |||
278 | rootfs/seed.iso: $(addprefix rootfs/samizdat.seed.btrf, s \ | 230 | rootfs/seed.iso: $(addprefix rootfs/samizdat.seed.btrf, s \ |
279 | $(if $(VERITY), s.verity s.verity.log)) | 231 | $(if $(VERITY), s.verity s.verity.log)) |
280 | rm -f $@~tmp | 232 | rm -f $@~tmp |