Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .github/workflows/build-iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,41 +108,6 @@ jobs:
# Copy target package list for installer
cp archiso/target-packages.x86_64 archiso/airootfs/root/

# Create auto-login service
mkdir -p archiso/airootfs/etc/systemd/system/getty@tty1.service.d
cat > archiso/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf << EOF
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I \$TERM
EOF

# Create installer launch script
cat > archiso/airootfs/root/.bash_profile << 'EOF'
#!/bin/bash

# Auto-start installer on login
if [[ -z \$DISPLAY ]] && [[ \$(tty) = /dev/tty1 ]]; then
clear
echo "Welcome to Hyprland Minimal Installer"
echo ""
echo "Type 'installer' to start the installation process"
echo "Type 'help' for more options"
echo ""
fi

alias installer='/usr/local/bin/installer.sh'
alias help='echo "Available commands:
installer - Start the installation process
iwctl - Configure WiFi manually
nmtui - Network configuration UI
fdisk -l - List available disks
lsblk - Show block devices
reboot - Restart the system
poweroff - Shutdown the system"'

source ~/.bashrc
EOF

# Set correct permissions
chmod +x archiso/airootfs/usr/local/bin/installer.sh
chmod +x archiso/profiledef.sh
Expand Down
1 change: 1 addition & 0 deletions archiso/airootfs/etc/hostname
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
archiso
1 change: 1 addition & 0 deletions archiso/airootfs/etc/locale.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LANG=en_US.UTF-8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Service]
ExecStart=
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin root - $TERM
13 changes: 13 additions & 0 deletions archiso/airootfs/etc/systemd/system/pacman-init.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Initializes Pacman keyring
Before=sshd.service cloud-init-local.service
ConditionDirectoryNotEmpty=!/etc/pacman.d/gnupg

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/pacman-key --init
ExecStart=/usr/bin/pacman-key --populate

[Install]
WantedBy=multi-user.target
24 changes: 0 additions & 24 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,30 +77,6 @@ cp .chezmoi.toml.tmpl archiso/airootfs/root/dotfiles/ 2>/dev/null || true
# Copy target package list for installer
cp archiso/target-packages.x86_64 archiso/airootfs/root/

# Create auto-login service
mkdir -p archiso/airootfs/etc/systemd/system/getty@tty1.service.d
cat > archiso/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf << EOF
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I \$TERM
EOF

# Create installer launch script
cat > archiso/airootfs/root/.bash_profile << "EOF"
#!/bin/bash

if [[ -z \$DISPLAY ]] && [[ \$(tty) = /dev/tty1 ]]; then
clear
echo "Welcome to Hyprland Minimal Installer"
echo ""
echo "Type '\''installer'\'' to start the installation process"
echo ""
fi

alias installer="/usr/local/bin/installer.sh"
source ~/.bashrc 2>/dev/null || true
EOF

# Set permissions
chmod +x archiso/airootfs/usr/local/bin/installer.sh 2>/dev/null || true
chmod +x archiso/profiledef.sh 2>/dev/null || true
Expand Down
36 changes: 0 additions & 36 deletions build-iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,42 +51,6 @@ cp "$SCRIPT_DIR/.chezmoi.toml.tmpl" "$PROFILE_DIR/airootfs/root/dotfiles/"
# Copy target package list for installer
cp "$PROFILE_DIR/target-packages.x86_64" "$PROFILE_DIR/airootfs/root/"

# Create auto-login service
print_step "Creating auto-login service"
mkdir -p "$PROFILE_DIR/airootfs/etc/systemd/system/getty@tty1.service.d"
cat > "$PROFILE_DIR/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf" << EOF
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I \$TERM
EOF

# Create installer launch script
cat > "$PROFILE_DIR/airootfs/root/.bash_profile" << 'EOF'
#!/bin/bash

# Auto-start installer on login
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
clear
echo "Welcome to Hyprland Minimal Installer"
echo ""
echo "Type 'installer' to start the installation process"
echo "Type 'help' for more options"
echo ""
fi

alias installer='/usr/local/bin/installer.sh'
alias help='echo "Available commands:
installer - Start the installation process
iwctl - Configure WiFi manually
nmtui - Network configuration UI
fdisk -l - List available disks
lsblk - Show block devices
reboot - Restart the system
poweroff - Shutdown the system"'

source ~/.bashrc
EOF

# Build the ISO
print_step "Building ISO (this will take some time)..."
mkarchiso -v -w "$WORK_DIR" -o "$OUT_DIR" "$PROFILE_DIR"
Expand Down