Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r committed Sep 28, 2024
1 parent b398460 commit 4693c34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,13 @@ jobs:
run: |
dd if=/dev/zero of=disk.img bs=1M count=15360 # Create a 15GB disk image
loop_device=$(sudo losetup -f)
if losetup -a | grep -q "$loop_device"; then
losetup -d $loop_device
fi
losetup $loop_device disk.img # Attach the file as a loopback device
parted -s $loop_device -- mklabel gpt
parted -s $loop_device -- mkpart ESP fat32 1MiB 512MiB
parted -s $loop_device -- set 1 esp on
parted -s $loop_device -- mkpart primary btrfs 512MiB 100%
sed -i "s#/dev/loop0#$loop_device#g" arch.json
lsblk
fdisk -l
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
ls -la /dev/
- name: Run the installer
run: aegis-arch config arch.json
6 changes: 3 additions & 3 deletions tests/arch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"device": "/dev/loop0",
"mode": "Auto",
"encrypt_check": false,
"efi": true,
"efi": false,
"swap": false,
"swap_size": "",
"partitions": []
},
"bootloader": {
"type": "grub-efi",
"location": "/boot"
"type": "grub-legacy",
"location": "/dev/loop0"
},
"locale": {
"locale": [
Expand Down

0 comments on commit 4693c34

Please sign in to comment.