fix
This commit is contained in:
parent
4f0f5fa5ce
commit
f125077b01
@ -276,7 +276,7 @@ decryptBoot() {
|
|||||||
echo "KEYFILE_PATTERN=\"/etc/*.key\"" >/etc/cryptsetup-initramfs/conf-hook
|
echo "KEYFILE_PATTERN=\"/etc/*.key\"" >/etc/cryptsetup-initramfs/conf-hook
|
||||||
}
|
}
|
||||||
|
|
||||||
configure-repository() {
|
configureRepository() {
|
||||||
echo 'force-unsafe-io' >$TARGET/etc/dpkg/dpkg.cfg.d/docker-apt-speedup
|
echo 'force-unsafe-io' >$TARGET/etc/dpkg/dpkg.cfg.d/docker-apt-speedup
|
||||||
echo "deb https://deb.debian.org/debian $DEBIAN_RELEASE main contrib non-free non-free-firmware" >$TARGET/etc/apt/sources.list
|
echo "deb https://deb.debian.org/debian $DEBIAN_RELEASE main contrib non-free non-free-firmware" >$TARGET/etc/apt/sources.list
|
||||||
echo "deb https://deb.debian.org/debian-security $DEBIAN_RELEASE-security main" >>$TARGET/etc/apt/sources.list
|
echo "deb https://deb.debian.org/debian-security $DEBIAN_RELEASE-security main" >>$TARGET/etc/apt/sources.list
|
||||||
@ -289,7 +289,7 @@ configure-repository() {
|
|||||||
chroot $TARGET /usr/bin/bash -c "export DEBIAN_FRONTEND=noninteractive;/usr/bin/apt auto-remove -y"
|
chroot $TARGET /usr/bin/bash -c "export DEBIAN_FRONTEND=noninteractive;/usr/bin/apt auto-remove -y"
|
||||||
}
|
}
|
||||||
|
|
||||||
make-image() {
|
makeImage() {
|
||||||
umount $TARGET
|
umount $TARGET
|
||||||
mount -t tmpfs tmpfs -o size=15G,dev,exec $TARGET
|
mount -t tmpfs tmpfs -o size=15G,dev,exec $TARGET
|
||||||
debootstrap --arch amd64 $DEBIAN_RELEASE $TARGET https://deb.debian.org/debian
|
debootstrap --arch amd64 $DEBIAN_RELEASE $TARGET https://deb.debian.org/debian
|
||||||
@ -712,7 +712,7 @@ initializeDisk() {
|
|||||||
printf "$DISK_PASSWORD" | cryptsetup open ${BTRFS} $ROOT_MAPPER_NAME
|
printf "$DISK_PASSWORD" | cryptsetup open ${BTRFS} $ROOT_MAPPER_NAME
|
||||||
echo
|
echo
|
||||||
echo "Formatting....."
|
echo "Formatting....."
|
||||||
echo y | mkfs.btrfs /dev/mapper/$ROOT_MAPPER_NAME --force
|
echo y | mkfs.btrfs /dev/mapper/$ROOT_MAPPER_NAME -f
|
||||||
echo
|
echo
|
||||||
echo "Formatting $EFI"
|
echo "Formatting $EFI"
|
||||||
echo
|
echo
|
||||||
@ -914,7 +914,7 @@ setDevices() {
|
|||||||
echo $root_name >>/tmp/disk
|
echo $root_name >>/tmp/disk
|
||||||
echo $device_mapper_name >>/tmp/disk
|
echo $device_mapper_name >>/tmp/disk
|
||||||
echo $SWAP_CHOICE >>/tmp/disk
|
echo $SWAP_CHOICE >>/tmp/disk
|
||||||
etDevices
|
setDevices
|
||||||
fi
|
fi
|
||||||
partitionDetection
|
partitionDetection
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user