File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-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,14 @@ 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 = (
84+ "pacman -S --noconfirm qubes-vm-kernel-support && mkinitcpio -P"
85+ )
86+ cmd_update_grub = (
87+ "mkdir -p /boot/grub && grub-mkconfig -o /boot/grub/grub.cfg"
88+ )
7989 else :
8090 assert False , "Unsupported template?!"
8191
@@ -102,6 +112,11 @@ def get_kernel_version(self, vm):
102112 "dpkg-query --showformat='${Package}\\ n' --show "
103113 "'linux-image-*-amd64'|sort -V|tail -1|cut -d - -f 3-"
104114 )
115+ elif self .template .startswith ("archlinux" ):
116+ cmd_get_kernel_version = (
117+ "pacman -Q linux|sort -V|tail -1|cut -d ' ' -f 2"
118+ "|sed 's/\.arch/-arch/'"
119+ )
105120 else :
106121 raise RuntimeError ("Unsupported template?!" )
107122
You can’t perform that action at this time.
0 commit comments