File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ def setUp(self):
4141 supported = True
4242 elif self .template .startswith ("debian-" ):
4343 supported = True
44+ elif self .template .startswith ("archlinux" ):
45+ supported = True
4446 if not supported :
4547 self .skipTest (
4648 "Template {} not supported by this test" .format (self .template )
@@ -76,6 +78,12 @@ def install_packages(self, vm):
7678 cmd_install1 += " dracut"
7779 cmd_install2 += " && dracut -f"
7880 cmd_update_grub = "mkdir -p /boot/grub && update-grub2"
81+ elif self .template .startswith ("archlinux" ):
82+ cmd_install1 = "pacman -S --noconfirm linux grub"
83+ cmd_install2 = "pacman -S --noconfirm qubes-vm-kernel-support"
84+ cmd_update_grub = (
85+ "mkdir -p /boot/grub && grub-mkconfig -o /boot/grub/grub.cfg"
86+ )
7987 else :
8088 assert False , "Unsupported template?!"
8189
@@ -102,6 +110,10 @@ def get_kernel_version(self, vm):
102110 "dpkg-query --showformat='${Package}\\ n' --show "
103111 "'linux-image-*-amd64'|sort -V|tail -1|cut -d - -f 3-"
104112 )
113+ elif self .template .startswith ("archlinux" ):
114+ cmd_get_kernel_version = (
115+ "pacman -Q linux|sort -V|tail -1|cut -d ' ' -f 2"
116+ )
105117 else :
106118 raise RuntimeError ("Unsupported template?!" )
107119
You can’t perform that action at this time.
0 commit comments