Skip to content

Commit 7b5e441

Browse files
committed
extract: add archlinux
1 parent be02a27 commit 7b5e441

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

distro_extractor/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Also, many distributions provide mirrors at different geographical places and UR
2222
---
2323

2424

25+
- Arch (https://archlinux.org/)
26+
- vm `DISTRO=arch DISTRO_ISO=/path/to/archlinux-2022.02.01-x86_64.iso make extract`
27+
- rootfs `DISTRO=arch DISTRO_ROOTFS=/path/to/archlinux-bootstrap-2022.02.01-x86_64.tar.gz make extract`
2528
- Artix (https://artixlinux.org/)
2629
- vm `DISTRO=artix DISTRO_ISO=/path/to/artix-base-openrc-20220123-x86_64.iso make extract`
2730
- Debian (https://www.debian.org/)

distro_extractor/arch/inc.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
source distro_extractor/arch-based/inc.sh || exit 1
4+
5+
VM_USER=root
6+
VM_PASS=arch
7+
8+
function boot_info() {
9+
echo "Go to $DISTRO window"
10+
echo "Select Arch Linux install medium"
11+
echo "After boot finished"
12+
echo "Run 'passwd'"
13+
echo "Type 'arch' and hit enter"
14+
echo "Type 'arch' and hit enter again to confirm"
15+
}

distro_extractor/arch/install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
echo "Starting installer"
2+
3+
mkfs.ext4 -m 0 -F /dev/sda
4+
mount /dev/sda /mnt/
5+
6+
pacstrap /mnt $(cat /tmp/packages.arch.txt | xargs)
7+
8+
sync
9+
umount /mnt/
10+
poweroff

0 commit comments

Comments
 (0)