Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
swapon: use a loopback device
Browse files Browse the repository at this point in the history
btrfs does not support swapfile. With a loopback device, we bypass the
limitation.

Also, ensure we've got the right Python 3.9 package installed.
  • Loading branch information
goneri committed Dec 14, 2021
1 parent 1e0559d commit 335bfef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tools/test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ set -euxo pipefail

sudo dd if=/dev/zero of=/swap.img bs=1024 count=1048576
sudo chmod 600 /swap.img
sudo mkswap /swap.img
sudo swapon /swap.img
sudo losetup -f /swap.img
sudo mkswap $(sudo losetup --associated /swap.img|sed 's,:.*,,')
sudo swapon $(sudo losetup --associated /swap.img|sed 's,:.*,,')

# Platforms coverage:
# Fedora 30 : has vagrant-libvirt no compilation needed
Expand Down
13 changes: 11 additions & 2 deletions tools/tox-py39/pre.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
---
- hosts: all
tasks:
- name: Ensure python3.9 is present
- name: Ensure python3.9 is present (Debian/Ubuntu)
become: true
package:
name: python
name: python3i9-devel
state: present
when: ansible_os_family != "RedHat"
- name: Ensure python3.8 is present (Red Hat)
become: true
package:
name:
- python3.9
- gcc
state: present
when: ansible_os_family == "RedHat"

0 comments on commit 335bfef

Please sign in to comment.