From 30d563436506269b984fa906134137c731b91285 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Wed, 7 Aug 2024 21:28:40 +0300 Subject: [PATCH] Create debootstrap.sh --- debootstrap.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 debootstrap.sh diff --git a/debootstrap.sh b/debootstrap.sh new file mode 100644 index 0000000..a437c7c --- /dev/null +++ b/debootstrap.sh @@ -0,0 +1,11 @@ +#! /bin/bash +set -e +DIST=sid ARCH=amd64 debootstrap --arch=amd64 sid base_chroot || true +rm -rf base_chroot/debootstrap +chroot ./base_chroot /bin/bash -c "DEBIAN_FRONTEND=noninteractive apt update -y" +chroot ./base_chroot /bin/bash -c "DEBIAN_FRONTEND=noninteractive apt install -y wget curl vim sudo systemd ifupdown rsyslog logrotate less bash-completion ca-certificates netbase lsb-release apt-utils gnupg2 apt-transport-https debian-keyring debian-archive-keyring" +chroot ./base_chroot /bin/bash -c "DEBIAN_FRONTEND=noninteractive wget https://ppa.pika-os.com/pool/cockatiel/p/pika-pbuilder/pika-pbuilder_0.2.37-101pika1_all.deb -O ./pika-pbuilder.deb" +chroot ./base_chroot /bin/bash -c "DEBIAN_FRONTEND=noninteractive DEBIAN_FRONTEND=noninteractive apt-get install -y ./pika-pbuilder.deb " +chroot ./base_chroot /bin/bash -c "DEBIAN_FRONTEND=noninteractive pika-pbuilder-amd64-v3-lto-init" +cd ./base_chroot +tar -czvf ../base_chroot.tgz ./*