Skip to content

Commit

Permalink
Update install.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r authored Jan 2, 2025
1 parent bf05589 commit 9d7df07
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,39 +51,39 @@ jobs:
exit 1
fi
echo "TARGET_DISK=$TARGET_DISK" >> $GITHUB_ENV # Set environment variable
lsblk $TARGET_DISK
fdisk -l $TARGET_DISK
mount
ls -la /mnt
ls -la /root
ls -la /tmp
ls -la /
mount ${TARGET_DISK}1 /mnt
ls -la /mnt
swapon --show
sudo swapoff /mnt/swapfile
swapon --show
rm -rf /mnt/*
ls -la /mnt
umount ${TARGET_DISK}1
#lsblk $TARGET_DISK
#fdisk -l $TARGET_DISK
#mount
#ls -la /mnt
#ls -la /root
#ls -la /tmp
#ls -la /
#mount ${TARGET_DISK}1 /mnt
#ls -la /mnt
#swapon --show
#sudo swapoff /mnt/swapfile
#swapon --show
#rm -rf /mnt/*
#ls -la /mnt
#umount ${TARGET_DISK}1
#parted -s $TARGET_DISK -- mklabel msdos
wipefs $TARGET_DISK
parted $TARGET_DISK align-check optimal 1
parted -s $TARGET_DISK -- mkpart primary ext4 1MiB 512MiB align optimal
parted -s $TARGET_DISK -- set 1 boot on
parted -s $TARGET_DISK -- mkpart primary btrfs 512MiB 100% align optimal
mkfs.ext4 -F ${TARGET_DISK}1
mkfs.btrfs -L athenaos -f ${TARGET_DISK}2
lsblk
fdisk -l $TARGET_DISK
#wipefs $TARGET_DISK
#parted $TARGET_DISK align-check optimal 1
#parted -s $TARGET_DISK -- mkpart primary ext4 1MiB 512MiB align optimal
#parted -s $TARGET_DISK -- set 1 boot on
#parted -s $TARGET_DISK -- mkpart primary btrfs 512MiB 100% align optimal
#mkfs.ext4 -F ${TARGET_DISK}1
#mkfs.btrfs -L athenaos -f ${TARGET_DISK}2
#lsblk
#fdisk -l $TARGET_DISK
jq --arg target_disk "$TARGET_DISK" \
--arg desktop "${{ matrix.config_installer.desktop }}" \
--arg displaymanager "${{ matrix.config_installer.displaymanager }}" \
--arg theme "${{ matrix.config_installer.theme || '' }}" \
--arg terminal "${{ matrix.config_installer.terminal || '' }}" \
--arg shell "${{ matrix.config_installer.shell || '' }}" \
--arg browser "${{ matrix.config_installer.browser || '' }}" \
'.partition.device = $target_disk | .partition.device = "Replace" | .partition.partitions = ["/mnt/:${target_disk}1:btrfs:false", "/mnt/boot:${target_disk}2:ext4:false"] | .bootloader.location = $target_disk | .desktop = $desktop | .displaymanager = $displaymanager | .theme = $theme | .terminal = $terminal | .shell = $shell | .browser = $browser' \
'.partition.device = $target_disk | .partition.mode = "EraseDisk" | .bootloader.location = $target_disk | .desktop = $desktop | .displaymanager = $displaymanager | .theme = $theme | .terminal = $terminal | .shell = $shell | .browser = $browser' \
${{ matrix.config_installer.config_file }} > modified_${{ matrix.config_installer.config_file }}
mv modified_${{ matrix.config_installer.config_file }} ${{ matrix.config_installer.config_file }}
Expand Down

0 comments on commit 9d7df07

Please sign in to comment.