]> git.plutz.net Git - bootimage/commitdiff
auto generate kernel and initrd links
authorPaul Hänsch <paul@plutz.net>
Tue, 26 Jun 2018 11:41:42 +0000 (13:41 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 26 Jun 2018 11:41:42 +0000 (13:41 +0200)
.gitignore
Makefile
initrd.img [deleted symlink]
vmlinuz [deleted symlink]

index 5e55873265db13b370aff3f69797c48b1afadbba..a7074f2291574fedab2cab98d6f2319d86d12e39 100644 (file)
@@ -2,3 +2,5 @@ stretch_*_config/
 stretch_*_root/
 stretch_*.squashfs
 mount/
+vmlinuz
+initrd.img
index ff9b317d2b747b76c4dd5b8776c6c9c5103cfb89..2843f5dc8ed5259d3f70879d7aab1173844349ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,12 @@ stretch_%.squashfs: stretch_%_config/
        rm "$@" || true
        mksquashfs "$<" "$@" -comp xz
 
+vmlinuz: stretch_*_root/
+       ln -s '$<$@' ./
+
+initrd.img: stretch_*_root/
+       ln -s '$<$@' ./
+
 /dev/sd%: partitions .FORCE
        sfdisk ${@} <partitions
        dd of=${@} if=/usr/lib/syslinux/mbr/gptmbr.bin
diff --git a/initrd.img b/initrd.img
deleted file mode 120000 (symlink)
index aa779de..0000000
+++ /dev/null
@@ -1 +0,0 @@
-stretch_uefi_root/initrd.img
\ No newline at end of file
diff --git a/vmlinuz b/vmlinuz
deleted file mode 120000 (symlink)
index 327b3aa..0000000
--- a/vmlinuz
+++ /dev/null
@@ -1 +0,0 @@
-stretch_uefi_root/vmlinuz
\ No newline at end of file