-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unrelated but I want to save this: debian minimal script
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|