mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
Merge pull request #26293 from Luap99/podman-rosetta
pkg/machine/e2e: skip rosetta test
This commit is contained in:
@@ -542,6 +542,7 @@ var _ = Describe("podman machine init", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("machine init with rosetta=true", func() {
|
It("machine init with rosetta=true", func() {
|
||||||
|
Skip("rosetta currently hard disabled https://github.com/containers/podman-machine-os/pull/134")
|
||||||
skipIfVmtype(define.QemuVirt, "Test is only for AppleHv")
|
skipIfVmtype(define.QemuVirt, "Test is only for AppleHv")
|
||||||
skipIfVmtype(define.WSLVirt, "Test is only for AppleHv")
|
skipIfVmtype(define.WSLVirt, "Test is only for AppleHv")
|
||||||
skipIfVmtype(define.HyperVVirt, "Test is only for AppleHv")
|
skipIfVmtype(define.HyperVVirt, "Test is only for AppleHv")
|
||||||
|
|||||||
@@ -530,7 +530,7 @@ func prepareCertFile(fpath string, name string) (File, error) {
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
systemdSSLConf = "/etc/systemd/system.conf.d/podman-machine-ssl.conf"
|
systemdSSLConf = "/etc/systemd/system.conf.d/podman-machine-ssl.conf"
|
||||||
envdSSLConf = "/etc/environment.d/podman-machine-ssl.conf"
|
// envdSSLConf = "/etc/environment.d/podman-machine-ssl.conf"
|
||||||
profileSSLConf = "/etc/profile.d/podman-machine-ssl.sh"
|
profileSSLConf = "/etc/profile.d/podman-machine-ssl.sh"
|
||||||
sslCertFile = "SSL_CERT_FILE"
|
sslCertFile = "SSL_CERT_FILE"
|
||||||
sslCertDir = "SSL_CERT_DIR"
|
sslCertDir = "SSL_CERT_DIR"
|
||||||
@@ -538,7 +538,7 @@ const (
|
|||||||
|
|
||||||
func getSSLEnvironmentFiles(sslFileName, sslDirName string) []File {
|
func getSSLEnvironmentFiles(sslFileName, sslDirName string) []File {
|
||||||
systemdFileContent := "[Manager]\n"
|
systemdFileContent := "[Manager]\n"
|
||||||
envdFileContent := ""
|
// envdFileContent := ""
|
||||||
profileFileContent := ""
|
profileFileContent := ""
|
||||||
if sslFileName != "" {
|
if sslFileName != "" {
|
||||||
// certs are written to UserCertsTargetPath see prepareCertFile()
|
// certs are written to UserCertsTargetPath see prepareCertFile()
|
||||||
@@ -546,19 +546,21 @@ func getSSLEnvironmentFiles(sslFileName, sslDirName string) []File {
|
|||||||
// a path on the client (i.e. windows) but then join to linux path that will be used inside the VM.
|
// a path on the client (i.e. windows) but then join to linux path that will be used inside the VM.
|
||||||
env := fmt.Sprintf("%s=%q\n", sslCertFile, path.Join(define.UserCertsTargetPath, filepath.Base(sslFileName)))
|
env := fmt.Sprintf("%s=%q\n", sslCertFile, path.Join(define.UserCertsTargetPath, filepath.Base(sslFileName)))
|
||||||
systemdFileContent += "DefaultEnvironment=" + env
|
systemdFileContent += "DefaultEnvironment=" + env
|
||||||
envdFileContent += env
|
// envdFileContent += env
|
||||||
profileFileContent += "export " + env
|
profileFileContent += "export " + env
|
||||||
}
|
}
|
||||||
if sslDirName != "" {
|
if sslDirName != "" {
|
||||||
// certs are written to UserCertsTargetPath see prepareCertFile()
|
// certs are written to UserCertsTargetPath see prepareCertFile()
|
||||||
env := fmt.Sprintf("%s=%q\n", sslCertDir, define.UserCertsTargetPath)
|
env := fmt.Sprintf("%s=%q\n", sslCertDir, define.UserCertsTargetPath)
|
||||||
systemdFileContent += "DefaultEnvironment=" + env
|
systemdFileContent += "DefaultEnvironment=" + env
|
||||||
envdFileContent += env
|
// envdFileContent += env
|
||||||
profileFileContent += "export " + env
|
profileFileContent += "export " + env
|
||||||
}
|
}
|
||||||
return []File{
|
return []File{
|
||||||
getSSLFile(systemdSSLConf, systemdFileContent),
|
getSSLFile(systemdSSLConf, systemdFileContent),
|
||||||
getSSLFile(envdSSLConf, envdFileContent),
|
// FIXME: something is very broken with the environment.d systemd generator.
|
||||||
|
// When setting any var there the systemd fails to boot successfully.
|
||||||
|
// getSSLFile(envdSSLConf, envdFileContent),
|
||||||
getSSLFile(profileSSLConf, profileFileContent),
|
getSSLFile(profileSSLConf, profileFileContent),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user