forked from TheTorProject/lepidopter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lepidopter-vmdebootstrap_build.sh
executable file
·53 lines (51 loc) · 1.38 KB
/
lepidopter-vmdebootstrap_build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -exa
GIT_BUILD="$(git describe --tags)"
echo "LEPIDOPTER_BUILD=\"${GIT_BUILD}\"" > lepidopter-fh/etc/default/lepidopter
source lepidopter-fh/etc/default/lepidopter
source conf/lepidopter-image.conf
vmdebootstrap \
--arch ${ARCH} \
--log `pwd`/images/lepidopter-build-${LEPIDOPTER_BUILD}-${ARCH}.log \
--distribution ${DEB_RELEASE} \
--apt-mirror ${APT_MIRROR} \
--mirror ${MIRROR} \
--image `pwd`/images/lepidopter-${LEPIDOPTER_BUILD}-${ARCH}.img \
--size 3950M \
--bootsize 64M \
--boottype vfat \
--log-level debug \
--verbose \
--no-extlinux \
--roottype ext4 \
--lock-root-password \
--no-kernel \
--user ${USER}/${PASSWD} \
--sudo \
--hostname ${HOSTNAME_IMG} \
--enable-dhcp \
--package netbase \
--package ntp \
--package less \
--package openssh-server \
--package screen \
--package git-core \
--package binutils \
--package ca-certificates \
--package wget \
--package kmod \
--package curl \
--package rng-tools \
--package lsb-release \
--package tcpdump \
--package localepurge \
--package fake-hwclock \
--package avahi-daemon \
--package wireless-tools \
--package wpasupplicant \
--package wireless-regdb \
--package crda \
--package watchdog \
--configure-apt \
--customize `pwd`/customize \
"$@"