Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r authored Jan 4, 2025
1 parent 9b7a022 commit 42def30
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,13 @@ jobs:
parted -s virtual_disk.img mkpart primary btrfs 512MiB 100%
losetup -fP virtual_disk.img
LOOP_DEV=$(losetup -j virtual_disk.img | cut -d':' -f1)
TARGET_DISK="fakedisk"
lsblk
sudo dmsetup --version
sudo modprobe dm_mod
lsmod | grep dm_mod
sudo dmsetup create fakedisk --table "0 $(blockdev --getsz /dev/loop0) linear /dev/loop0 0" --verbose
lsblk
sudo dmsetup ls
ls -la /dev/mapper
sudo kpartx -av /dev/mapper/$TARGET_DISK
sudo kpartx -av $LOOP_DEV
ln -s $LOOP_DEV /dev/mapper/loop0
ls -la /dev
ls -la /dev/mapper
jq --arg target_disk "/dev/mapper/$TARGET_DISK" \
jq --arg target_disk "/dev/mapper/loop0" \
--arg desktop "${{ matrix.config_installer.desktop }}" \
--arg displaymanager "${{ matrix.config_installer.displaymanager }}" \
--arg theme "${{ matrix.config_installer.theme || '' }}" \
Expand Down

0 comments on commit 42def30

Please sign in to comment.