summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-GCE-image9
-rwxr-xr-xscripts/build-packages1
2 files changed, 9 insertions, 1 deletions
diff --git a/scripts/build-GCE-image b/scripts/build-GCE-image
index 9986e8dc..90eb6468 100755
--- a/scripts/build-GCE-image
+++ b/scripts/build-GCE-image
@@ -16,6 +16,9 @@
# Purpose:
# Build VyOS image for Google cloud.
+apt-get update && apt-get install -y \
+ grub-pc grub2-common parted kpartx
+
lb bootstrap
lb chroot
@@ -60,6 +63,12 @@ OUTPUTGZ=VyOS-"$dateymd".tar.gz
IMAGE_SIZE=10
qemu-img create -f raw ${OUTPUT} ${IMAGE_SIZE}G
+LOOPNAME=`losetup -f`
+LOOPMINOR=${LOOPNAME//[^0-9]}
+if [ ! -e $LOOPNAME ]; then
+ mknod $LOOPNAME b 7 $LOOPMINOR
+fi
+
${PARTED} -s ${OUTPUT} mktable msdos
${PARTED} -s -a optimal ${OUTPUT} mkpart primary ext4 1Mi 100%
${PARTED} -s ${OUTPUT} set 1 boot on
diff --git a/scripts/build-packages b/scripts/build-packages
index 58778fad..d7c06b4c 100755
--- a/scripts/build-packages
+++ b/scripts/build-packages
@@ -187,7 +187,6 @@ vyos_packages = ['vyatta-bash',
'vyatta-iproute',
'vyatta-biosdevname',
'vyos-opennhrp',
- 'vyos-salt-minion',
'udp-broadcast-relay',
'vyos-1x',
'vyatta-conntrack',