-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathchroot-payload
More file actions
executable file
·27 lines (21 loc) · 867 Bytes
/
chroot-payload
File metadata and controls
executable file
·27 lines (21 loc) · 867 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
#!/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 $RELEASE main" > /etc/apt/sources.list
echo "deb-src http://cdn.debian.net/debian $RELEASE 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-$DI_VERSION"
info 'Running initial build'
cd build
echo "deb http://cdn.debian.net/debian $RELEASE main/debian-installer" > sources.list.udeb.local
echo 'PRESEED=/opt/di-build/preseed.cfg' > config/local
echo "USE_UDEBS_FROM=$RELEASE" >> config/local
make reallyclean
make build_netboot