diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-01-04 18:08:09 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-01-04 18:19:47 +0100 |
commit | fdc9250bca7bfce660758d77af2ffa971bc19ecb (patch) | |
tree | 81a0ce184d4791742031f6cbc53f30c80883ed68 /scripts | |
parent | 691305c11ea59ddf64faff5f778658914e7c6be7 (diff) | |
download | vyos-live-build-fdc9250bca7bfce660758d77af2ffa971bc19ecb.tar.gz vyos-live-build-fdc9250bca7bfce660758d77af2ffa971bc19ecb.zip |
Changing package dependency checks within chroot to work outside as well.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/.grep.swp | bin | 0 -> 4096 bytes | |||
-rwxr-xr-x | scripts/build/binary_grub | 2 | ||||
-rwxr-xr-x | scripts/build/binary_grub2 | 2 | ||||
-rwxr-xr-x | scripts/build/binary_hdd | 14 | ||||
-rwxr-xr-x | scripts/build/binary_iso | 2 | ||||
-rwxr-xr-x | scripts/build/binary_loadlin | 2 | ||||
-rwxr-xr-x | scripts/build/binary_memtest | 4 | ||||
-rwxr-xr-x | scripts/build/binary_netboot | 2 | ||||
-rwxr-xr-x | scripts/build/binary_package-lists | 4 | ||||
-rwxr-xr-x | scripts/build/binary_rootfs | 6 | ||||
-rwxr-xr-x | scripts/build/binary_syslinux | 6 | ||||
-rwxr-xr-x | scripts/build/binary_win32-loader | 2 | ||||
-rwxr-xr-x | scripts/build/binary_zsync | 2 | ||||
-rwxr-xr-x | scripts/build/bootstrap_debootstrap | 2 | ||||
-rwxr-xr-x | scripts/build/chroot_archives | 2 | ||||
-rwxr-xr-x | scripts/build/chroot_package-lists | 2 | ||||
-rwxr-xr-x | scripts/build/chroot_preseed | 2 | ||||
-rwxr-xr-x | scripts/build/installer_debian-installer | 4 | ||||
-rwxr-xr-x | scripts/build/source_hdd | 4 | ||||
-rwxr-xr-x | scripts/build/source_iso | 2 |
20 files changed, 33 insertions, 33 deletions
diff --git a/scripts/build/.grep.swp b/scripts/build/.grep.swp Binary files differnew file mode 100644 index 000000000..ccbb0c895 --- /dev/null +++ b/scripts/build/.grep.swp diff --git a/scripts/build/binary_grub b/scripts/build/binary_grub index c311c12a8..fcb386e4a 100755 --- a/scripts/build/binary_grub +++ b/scripts/build/binary_grub @@ -51,7 +51,7 @@ Check_architectures amd64 i386 Check_crossarchitectures # Checking depends -Check_package chroot/usr/sbin/grub grub-legacy +Check_package chroot /usr/sbin/grub grub-legacy # Restoring cache Restore_cache cache/packages.binary diff --git a/scripts/build/binary_grub2 b/scripts/build/binary_grub2 index bf5f8cecf..3c8049e50 100755 --- a/scripts/build/binary_grub2 +++ b/scripts/build/binary_grub2 @@ -51,7 +51,7 @@ Check_architectures amd64 i386 Check_crossarchitectures # Checking depends -Check_package chroot/usr/bin/grub-mkimage grub-pc +Check_package chroot /usr/bin/grub-mkimage grub-pc # Restoring cache Restore_cache cache/packages.binary diff --git a/scripts/build/binary_hdd b/scripts/build/binary_hdd index 90cd3e9d0..0e08b9e79 100755 --- a/scripts/build/binary_hdd +++ b/scripts/build/binary_hdd @@ -46,22 +46,22 @@ Create_lockfile .lock # Checking depends case "${LB_BINARY_FILESYSTEM}" in fat*) - Check_package chroot/sbin/mkdosfs dosfstools + Check_package chroot /sbin/mkdosfs dosfstools ;; ntfs) - Check_package chroot/sbin/mkfs.nfts ntfs-3g + Check_package chroot /sbin/mkfs.nfts ntfs-3g ;; esac -Check_package chroot/usr/share/doc/mtools mtools -Check_package chroot/sbin/parted parted +Check_package chroot /usr/share/doc/mtools mtools +Check_package chroot /sbin/parted parted if [ "${LB_ARCHITECTURES}" = "sparc" ] then case "${LB_BINARY_FILESYSTEM}" in ext2|ext3|ext4) - Check_package chroot/sbin/mkfs.${LB_BINARY_FILESYSTEM} e2fsprogs + Check_package chroot /sbin/mkfs.${LB_BINARY_FILESYSTEM} e2fsprogs ;; *) @@ -73,7 +73,7 @@ fi case "${LB_BOOTLOADER}" in grub) - Check_package chroot/usr/sbin/grub grub + Check_package chroot /usr/sbin/grub grub ;; syslinux) @@ -89,7 +89,7 @@ case "${LB_BOOTLOADER}" in exit 1 ;; esac - Check_package chroot/usr/bin/${_BOOTLOADER} ${_BOOTLOADER} + Check_package chroot /usr/bin/${_BOOTLOADER} ${_BOOTLOADER} ;; esac diff --git a/scripts/build/binary_iso b/scripts/build/binary_iso index 9b173790c..8475c8824 100755 --- a/scripts/build/binary_iso +++ b/scripts/build/binary_iso @@ -53,7 +53,7 @@ Check_lockfile .lock Create_lockfile .lock # Checking depends -Check_package chroot/usr/bin/xorriso xorriso +Check_package chroot /usr/bin/xorriso xorriso # Restoring cache Restore_cache cache/packages.binary diff --git a/scripts/build/binary_loadlin b/scripts/build/binary_loadlin index e771c2931..968d5b309 100755 --- a/scripts/build/binary_loadlin +++ b/scripts/build/binary_loadlin @@ -48,7 +48,7 @@ case "${LB_ARCHITECTURES}" in case "${LB_BUILD_WITH_CHROOT}" in true) # Checking depends - Check_package chroot/usr/lib/loadlin/loadlin.exe.gz loadlin + Check_package chroot /usr/lib/loadlin/loadlin.exe.gz loadlin # Restoring cache Restore_cache cache/packages.binary diff --git a/scripts/build/binary_memtest b/scripts/build/binary_memtest index 5e8d1752b..840e6be5b 100755 --- a/scripts/build/binary_memtest +++ b/scripts/build/binary_memtest @@ -64,11 +64,11 @@ fi # Checking depends case "${LB_MEMTEST}" in memtest86) - Check_package chroot/boot/memtest86.bin memtest86 + Check_package chroot /boot/memtest86.bin memtest86 ;; memtest86+) - Check_package chroot/boot/memtest86+.bin memtest86+ + Check_package chroot /boot/memtest86+.bin memtest86+ ;; esac diff --git a/scripts/build/binary_netboot b/scripts/build/binary_netboot index 2290ac10d..6de12fc27 100755 --- a/scripts/build/binary_netboot +++ b/scripts/build/binary_netboot @@ -51,7 +51,7 @@ Create_lockfile .lock if [ "${LB_ARCHITECTURES}" = "sparc" ] then # Checking depends - Check_package chroot/usr/bin/elftoaout sparc-utils + Check_package chroot /usr/bin/elftoaout sparc-utils # Restoring cache Restore_cache cache/packages.binary diff --git a/scripts/build/binary_package-lists b/scripts/build/binary_package-lists index ff19c3c6c..91ff72e9d 100755 --- a/scripts/build/binary_package-lists +++ b/scripts/build/binary_package-lists @@ -59,8 +59,8 @@ then Restore_cache cache/packages.chroot # Check depends - Check_package chroot/usr/bin/apt-ftparchive apt-utils - Check_package chroot/usr/bin/grep-aptavail dctrl-tools + Check_package chroot /usr/bin/apt-ftparchive apt-utils + Check_package chroot /usr/bin/grep-aptavail dctrl-tools # Installing depends Install_package diff --git a/scripts/build/binary_rootfs b/scripts/build/binary_rootfs index e950505fb..c1e4ec8e0 100755 --- a/scripts/build/binary_rootfs +++ b/scripts/build/binary_rootfs @@ -85,7 +85,7 @@ done case "${LB_CHROOT_FILESYSTEM}" in ext2|ext3|ext4) # Checking depends - Check_package chroot/sbin/mkfs.${LB_CHROOT_FILESYSTEM} e2fsprogs + Check_package chroot /sbin/mkfs.${LB_CHROOT_FILESYSTEM} e2fsprogs # Restoring cache Restore_cache cache/packages.binary @@ -211,7 +211,7 @@ case "${LB_CHROOT_FILESYSTEM}" in jffs2) # Checking depends - Check_package chroot/usr/sbin/mkfs.jffs2 mtd-tools + Check_package chroot /usr/sbin/mkfs.jffs2 mtd-tools # Restoring cache Restore_cache cache/packages.binary @@ -310,7 +310,7 @@ case "${LB_CHROOT_FILESYSTEM}" in squashfs) # Checking depends - Check_package chroot/usr/share/doc/squashfs-tools squashfs-tools + Check_package chroot /usr/share/doc/squashfs-tools squashfs-tools # Restoring cache Restore_cache cache/packages.binary diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux index e939cf4b4..daeb61318 100755 --- a/scripts/build/binary_syslinux +++ b/scripts/build/binary_syslinux @@ -123,12 +123,12 @@ fi # Checking depends case "${LB_BUILD_WITH_CHROOT}" in true) - Check_package chroot/usr/lib/$(echo ${_BOOTLOADER} | tr [a-z] [A-Z]) ${_BOOTLOADER} - Check_package chroot/usr/lib/syslinux syslinux-common + Check_package chroot /usr/lib/$(echo ${_BOOTLOADER} | tr [a-z] [A-Z]) ${_BOOTLOADER} + Check_package chroot /usr/lib/syslinux syslinux-common if ls "${_SOURCE}"/*.svg* > /dev/null 2>&1 then - Check_package chroot/usr/bin/rsvg-convert librsvg2-bin + Check_package chroot /usr/bin/rsvg-convert librsvg2-bin fi ;; diff --git a/scripts/build/binary_win32-loader b/scripts/build/binary_win32-loader index 401144687..7855110f7 100755 --- a/scripts/build/binary_win32-loader +++ b/scripts/build/binary_win32-loader @@ -48,7 +48,7 @@ case "${LB_ARCHITECTURES}" in if [ "${LB_BUILD_WITH_CHROOT}" = "true" ] then # Checking depends - Check_package chroot/usr/share/win32/win32-loader.exe win32-loader + Check_package chroot /usr/share/win32/win32-loader.exe win32-loader # Restoring cache Restore_cache cache/packages.binary diff --git a/scripts/build/binary_zsync b/scripts/build/binary_zsync index fd2fe01a7..efd703a65 100755 --- a/scripts/build/binary_zsync +++ b/scripts/build/binary_zsync @@ -49,7 +49,7 @@ Check_lockfile .lock Create_lockfile .lock # Checking depends -Check_package chroot/usr/bin/zsyncmake zsync +Check_package chroot /usr/bin/zsyncmake zsync # Restoring cache Restore_cache cache/packages.binary diff --git a/scripts/build/bootstrap_debootstrap b/scripts/build/bootstrap_debootstrap index 36b441e85..0863a7334 100755 --- a/scripts/build/bootstrap_debootstrap +++ b/scripts/build/bootstrap_debootstrap @@ -37,7 +37,7 @@ Check_crossarchitectures Echo_message "Begin bootstrapping system..." -Check_package /usr/sbin/debootstrap debootstrap +Check_package chroot bin/debootstrap debootstrap # Checking stage file Check_stagefile .build/bootstrap diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives index 59f1b6318..0a66e2706 100755 --- a/scripts/build/chroot_archives +++ b/scripts/build/chroot_archives @@ -275,7 +275,7 @@ EOF fi # Check depends - Check_package chroot/usr/bin/apt-ftparchive apt-utils + Check_package chroot /usr/bin/apt-ftparchive apt-utils # Installing depends Install_package diff --git a/scripts/build/chroot_package-lists b/scripts/build/chroot_package-lists index 072343c8e..3ad1d7946 100755 --- a/scripts/build/chroot_package-lists +++ b/scripts/build/chroot_package-lists @@ -52,7 +52,7 @@ fi case "${LB_BUILD_WITH_CHROOT}" in true) # Checking depends - Check_package chroot/usr/bin/grep-aptavail dctrl-tools + Check_package chroot /usr/bin/grep-aptavail dctrl-tools # Restoring cache Restore_cache cache/packages.chroot diff --git a/scripts/build/chroot_preseed b/scripts/build/chroot_preseed index 4ef772957..7fd43cdf9 100755 --- a/scripts/build/chroot_preseed +++ b/scripts/build/chroot_preseed @@ -43,7 +43,7 @@ if ls config/preseed/*.cfg > /dev/null 2>&1 || \ ls chroot/root/packages.chroot.cfg > /dev/null 2>&1 then # Check dependency - Check_package chroot/usr/bin/debconf-set-selections debconf + Check_package chroot /usr/bin/debconf-set-selections debconf # Install dependency Install_package diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer index 5146ede5b..0d4a3c0ba 100755 --- a/scripts/build/installer_debian-installer +++ b/scripts/build/installer_debian-installer @@ -64,8 +64,8 @@ Check_lockfile .lock Create_lockfile .lock # Checking depends -Check_package chroot/usr/bin/wget wget -Check_package chroot/usr/bin/apt-ftparchive apt-utils +Check_package chroot /usr/bin/wget wget +Check_package chroot /usr/bin/apt-ftparchive apt-utils # Restoring cache Restore_cache cache/packages.binary diff --git a/scripts/build/source_hdd b/scripts/build/source_hdd index 022c1e186..c932034cf 100755 --- a/scripts/build/source_hdd +++ b/scripts/build/source_hdd @@ -49,8 +49,8 @@ Check_lockfile .lock Create_lockfile .lock # Checking depends -Check_package chroot/sbin/mkdosfs dosfstools -Check_package chroot/sbin/parted parted +Check_package chroot /sbin/mkdosfs dosfstools +Check_package chroot /sbin/parted parted # Installing depends Install_package diff --git a/scripts/build/source_iso b/scripts/build/source_iso index 3896e00dd..8c6300c11 100755 --- a/scripts/build/source_iso +++ b/scripts/build/source_iso @@ -53,7 +53,7 @@ Check_lockfile .lock Create_lockfile .lock # Checking depends -Check_package chroot/usr/bin/xorriso xorriso +Check_package chroot /usr/bin/xorriso xorriso # Installing depends Install_package |