Skip to content

Commit

Permalink
unrelated but I want to save this: debian minimal script
Browse files Browse the repository at this point in the history
  • Loading branch information
aaruni96 committed Oct 22, 2024
1 parent 6c72a26 commit 5b0cb92
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions utils/setup-debian-minimal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

#first time setup
#run from maps directory

#get minimal debain image
wget 'https://github.com/debuerreotype/docker-debian-artifacts/raw/dist-amd64/bookworm/rootfs.tar.xz'

#untar
mkdir -pv ../ostree/debian-minimal
cp rootfs.tar.xz ../ostree/debian-minimal/
cd ../ostree/debian-minimal/
tar -xvf rootfs.tar.xz
rm -v rootfs.tar.xz

#comment out apt from passwd
sed -i bak -e 's/^_apt/#_apt/' etc/passwd

#go back to maps directory
cd ../..

#source venv
source .venv/bin/activate

#sandbox into maps, install fakeroot

./src/maps package --sandbox ostree/debian-minimal

0 comments on commit 5b0cb92

Please sign in to comment.