forked from vemek/debian-remote-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchroot-payload
More file actions
executable file
·29 lines (23 loc) · 921 Bytes
/
chroot-payload
File metadata and controls
executable file
·29 lines (23 loc) · 921 Bytes
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
#!/bin/bash
# This is the chroot payload that does stuff
source /opt/di-build/common.sh
export LC_ALL=C
info 'Updating package list'
echo "deb http://cdn.debian.net/debian jessie main" > /etc/apt/sources.list
echo "deb-src http://cdn.debian.net/debian jessie main" >> /etc/apt/sources.list
apt-get update
info 'Installing build dependencies'
apt-get -y install build-essential git
apt-get -y build-dep debian-installer
info 'Grabbing debian-installer source'
rm -rf "$SRC_DIR" && mkdir "$SRC_DIR" && cd "$SRC_DIR"
apt-get source debian-installer && cd debian-installer*
info 'Running initial build'
cd build
echo 'deb http://cdn.debian.net/debian jessie main/debian-installer' > sources.list.udeb.local
echo 'PRESEED=/opt/di-build/preseed.cfg' > config/local
echo 'USE_UDEBS_FROM=jessie' >> config/local
sed -i '1s/^/#include network-console\n/' pkg-lists/netboot/amd64.cfg
bash
make reallyclean
make build_netboot