This repository was archived by the owner on Oct 17, 2022. It is now read-only.
File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,18 @@ var ccloudvmUbuntuDeps = []osprepare.PackageRequirement{
44
44
{BinaryName : "/usr/bin/ssh-keygen" , PackageName : "openssh-client" },
45
45
}
46
46
47
+ var ccloudvmArchDeps = []osprepare.PackageRequirement {
48
+ {BinaryName : "/usr/bin/xz" , PackageName : "core/xz" },
49
+ {BinaryName : "/usr/bin/qemu-system-x86_64" , PackageName : "extra/qemu" },
50
+ {BinaryName : "/usr/bin/qemu-img" , PackageName : "extra/qemu" },
51
+ {BinaryName : "/usr/bin/xorriso" , PackageName : "extra/libisoburn" },
52
+ {BinaryName : "/usr/bin/ssh" , PackageName : "core/openssh" },
53
+ {BinaryName : "/usr/bin/ssh-keygen" , PackageName : "core/openssh" },
54
+ }
55
+
47
56
var ccloudvmDeps = map [string ][]osprepare.PackageRequirement {
48
57
"clearlinux" : ccloudvmClearDeps ,
49
58
"fedora" : ccloudvmFedoraDeps ,
50
59
"ubuntu" : ccloudvmUbuntuDeps ,
60
+ "arch" : ccloudvmArchDeps ,
51
61
}
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ func getDistro() distro {
67
67
return & debianDistro {}
68
68
} else if strings .Contains (osRelease .ID , "fedora" ) {
69
69
return & fedoraDistro {}
70
+ } else if strings .Contains (osRelease .ID , "arch" ) {
71
+ return & archDistro {}
70
72
}
71
73
return nil
72
74
}
@@ -161,3 +163,14 @@ func (d *fedoraDistro) getID() string {
161
163
func (d * fedoraDistro ) InstallPackages (ctx context.Context , packages []string , logger clogger.CiaoLog ) bool {
162
164
return sudoFormatCommand (ctx , "dnf install -y %s" , packages , logger )
163
165
}
166
+
167
+ type archDistro struct {
168
+ }
169
+
170
+ func (d * archDistro ) getID () string {
171
+ return "arch"
172
+ }
173
+
174
+ func (d * archDistro ) InstallPackages (ctx context.Context , packages []string , logger clogger.CiaoLog ) bool {
175
+ return sudoFormatCommand (ctx , "pacman -Sy --noconfirm %s" , packages , logger )
176
+ }
You can’t perform that action at this time.
0 commit comments