Skip to content

Commit be02a27

Browse files
committed
extract: arch-based distros
1 parent 98f87a2 commit be02a27

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

distro_extractor/arch-based/inc.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
PM=arch
4+
5+
function distro_install_command() {
6+
packages=$(cat "$NICE_PRESET_PATH/packages.${PM}.txt" | xargs)
7+
echo "pacman -Sy --noconfirm $packages"
8+
}

distro_extractor/artix/inc.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

3-
PM=arch
3+
source distro_extractor/arch-based/inc.sh || exit 1
4+
45
VM_USER=artix
56
VM_PASS=$VM_USER
67

@@ -17,8 +18,3 @@ function boot_info_qemu() {
1718
echo "Run '/bin/sshd'"
1819
echo "For future password prompt write $VM_PASS"
1920
}
20-
21-
function distro_install_command() {
22-
packages=$(cat "$NICE_PRESET_PATH/packages.${PM}.txt" | xargs)
23-
echo "pacman -Sy --noconfirm $packages"
24-
}

0 commit comments

Comments
 (0)