mirror of
https://codeberg.org/angestoepselt/imagestack.git
synced 2025-05-24 14:46:16 +00:00
Adjusted Stuff
This commit is contained in:
parent
4326c715f5
commit
49bb74859f
5 changed files with 32 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
images/*
|
||||||
|
source/*
|
||||||
21
setup.sh
Normal file
21
setup.sh
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Change to the script's directory
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
ISO_URL="https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.9.0-amd64-netinst.iso"
|
||||||
|
IMAGE_DIR="images"
|
||||||
|
ISO_NAME="$IMAGE_DIR/debian-server.iso"
|
||||||
|
SOURCE_DIR="source"
|
||||||
|
|
||||||
|
# Create necessary directories
|
||||||
|
mkdir -p "$IMAGE_DIR" "$SOURCE_DIR"
|
||||||
|
|
||||||
|
# Download the ISO file
|
||||||
|
wget -O "$ISO_NAME" "$ISO_URL"
|
||||||
|
|
||||||
|
# Extract ISO contents
|
||||||
|
xorriso -osirrox on -indev "$ISO_NAME" -extract / "$SOURCE_DIR/"
|
||||||
|
|
||||||
|
echo "Debian server ISO file downloaded to $IMAGE_DIR and extracted to $SOURCE_DIR"
|
||||||
|
|
||||||
9
shell.nix
Normal file
9
shell.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = [
|
||||||
|
pkgs.xorriso
|
||||||
|
pkgs.p7zip
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue