Fix selection of initramfs for qemu

This commit is contained in:
jalr 2018-03-21 22:58:02 +01:00
parent 5e9e6e0895
commit e001325c8f

View file

@ -20,7 +20,7 @@ qemu_target ?= debian-stretch
qemu_kernel = $(qemu_target).linux
qemu_torrent = $(qemu_target).torrent
qemu_initramfs = $(shell \
if [ -e $(qemu_target).initramfs.dev ] && [ `date -r $(qemu_target).initramfs.dev +%s` -gt `date -r $(qemu_target).initramfs +%s` ]; then \
if [ -e images/$(qemu_target).initramfs.dev ] && [ `date -r images/$(qemu_target).initramfs.dev +%s` -gt `date -r images/$(qemu_target).initramfs +%s` ]; then \
echo "$(qemu_target).initramfs.dev"; \
else \
echo "$(qemu_target).initramfs"; \