pull earlier.
This commit is contained in:
parent
34bd561e84
commit
c4ad943223
@ -5,7 +5,7 @@ BOOTLOADER grub
|
|||||||
SWRAID 1
|
SWRAID 1
|
||||||
SWRAIDLEVEL 1
|
SWRAIDLEVEL 1
|
||||||
FILESYSTEM xfs
|
FILESYSTEM xfs
|
||||||
IMAGE almalinux-9
|
IMAGE Alma-9-latest-amd64-base.tar.gz
|
||||||
CRYPTPASSWORD changeme
|
CRYPTPASSWORD changeme
|
||||||
|
|
||||||
PART /boot/efi vfat 512M
|
PART /boot/efi vfat 512M
|
||||||
|
29
install.sh
29
install.sh
@ -4,12 +4,12 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# If we're being piped, save to a temp file and re-execute
|
# If we're being piped, download the full repo and run from there
|
||||||
if [ ! -t 0 ]; then
|
if [ ! -t 0 ]; then
|
||||||
TEMP_SCRIPT=$(mktemp)
|
echo "[+] Downloading nullpoint installer..."
|
||||||
cat > "$TEMP_SCRIPT"
|
git clone https://git.dominik-roth.eu/dodox/nullpoint.git /tmp/nullpoint_installer
|
||||||
chmod +x "$TEMP_SCRIPT"
|
cd /tmp/nullpoint_installer
|
||||||
exec bash "$TEMP_SCRIPT"
|
exec bash install.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BANNER=$(cat << "EOF"
|
BANNER=$(cat << "EOF"
|
||||||
@ -82,19 +82,20 @@ echo "================================================"
|
|||||||
echo -e "\nPress Enter when you've saved the passphrase..."
|
echo -e "\nPress Enter when you've saved the passphrase..."
|
||||||
read -r < /dev/tty
|
read -r < /dev/tty
|
||||||
|
|
||||||
# Clone or download the nullpoint repo
|
# Check if we're already in the nullpoint directory or need to use it
|
||||||
echo "[+] Downloading nullpoint configuration..."
|
if [ -f "install.conf" ] && [ -f "post-install.sh" ]; then
|
||||||
if command -v git &> /dev/null; then
|
echo "[+] Using local nullpoint files..."
|
||||||
git clone https://git.dominik-roth.eu/dodox/nullpoint.git /tmp/nullpoint
|
|
||||||
else
|
else
|
||||||
echo "ERROR: git not available and wget fallback insufficient for dotfiles"
|
# Clean up any existing directory
|
||||||
echo "Please install git or use manual installation method"
|
if [ -d "/tmp/nullpoint" ]; then
|
||||||
exit 1
|
rm -rf /tmp/nullpoint
|
||||||
|
fi
|
||||||
|
echo "[+] Downloading nullpoint configuration..."
|
||||||
|
git clone https://git.dominik-roth.eu/dodox/nullpoint.git /tmp/nullpoint
|
||||||
|
cd /tmp/nullpoint
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update install.conf
|
|
||||||
echo "[+] Configuring installation..."
|
echo "[+] Configuring installation..."
|
||||||
cd /tmp/nullpoint
|
|
||||||
|
|
||||||
# Auto-detect drives
|
# Auto-detect drives
|
||||||
echo "[+] Detecting drives..."
|
echo "[+] Detecting drives..."
|
||||||
|
Loading…
Reference in New Issue
Block a user