diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2016-12-02 15:42:59 +0100 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2016-12-02 15:42:59 +0100 |
commit | 9c974b26bf532ba76f6d66423310f6d95b1ff1f7 (patch) | |
tree | 642167867262a1fd95a682545c93d07b6ebefab9 /scripts/build | |
parent | b8f7f19015055fc4c7ef30e3787721ac2218ed3b (diff) | |
download | vyos-live-build-9c974b26bf532ba76f6d66423310f6d95b1ff1f7.tar.gz vyos-live-build-9c974b26bf532ba76f6d66423310f6d95b1ff1f7.zip |
Instead of renaming kernel for syslinux, create hardlinks
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/binary_iso | 2 | ||||
-rwxr-xr-x | scripts/build/binary_syslinux | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/build/binary_iso b/scripts/build/binary_iso index 2b381622a..99cae59a8 100755 --- a/scripts/build/binary_iso +++ b/scripts/build/binary_iso @@ -151,7 +151,7 @@ do ;; esac - XORRISO_OPTIONS="${XORRISO_OPTIONS} -no-emul-boot -boot-load-size 4 -boot-info-table" + XORRISO_OPTIONS="${XORRISO_OPTIONS} -no-emul-boot -boot-load-size 4 -boot-info-table --hardlinks" ;; grub-efi) diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux index 80ee6d874..1347aa20b 100755 --- a/scripts/build/binary_syslinux +++ b/scripts/build/binary_syslinux @@ -186,8 +186,8 @@ then 1) # If multiple initrd images are being generated (by DKMS packages, etc), # we likely only want the latest version. - mv $(ls -r1 --sort=version binary/${_INITRAMFS}/vmlinuz-* | head -n 1) binary/${_INITRAMFS}/vmlinuz - mv $(ls -r1 --sort=version binary/${_INITRAMFS}/initrd.img-* | head -n 1) binary/${_INITRAMFS}/initrd.img + ln $(ls -r1 --sort=version binary/${_INITRAMFS}/vmlinuz-* | head -n 1) binary/${_INITRAMFS}/vmlinuz + ln $(ls -r1 --sort=version binary/${_INITRAMFS}/initrd.img-* | head -n 1) binary/${_INITRAMFS}/initrd.img sed -e "s|@FLAVOUR@|${LB_LINUX_FLAVOURS}|g" \ -e "s|@LINUX@|/${_INITRAMFS}/vmlinuz|g" \ @@ -204,8 +204,8 @@ then do _NUMBER="$((${_NUMBER} + 1))" - mv binary/${_INITRAMFS}/vmlinuz-*-${_FLAVOUR} binary/${_INITRAMFS}/vmlinuz${_NUMBER} - mv binary/${_INITRAMFS}/initrd.img-*-${_FLAVOUR} binary/${_INITRAMFS}/initrd${_NUMBER}.img + ln binary/${_INITRAMFS}/vmlinuz-*-${_FLAVOUR} binary/${_INITRAMFS}/vmlinuz${_NUMBER} + ln binary/${_INITRAMFS}/initrd.img-*-${_FLAVOUR} binary/${_INITRAMFS}/initrd${_NUMBER}.img if [ "${_NUMBER}" -gt 1 ] then |