File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,12 @@ var _ = Describe("podman machine init", func() {
280
280
Expect (err ).ToNot (HaveOccurred ())
281
281
Expect (timezoneSession ).To (Exit (0 ))
282
282
Expect (timezoneSession .outputToString ()).To (ContainSubstring ("HST" ))
283
+
284
+ sshTimezone = sshMachine {}
285
+ timezoneSession , err = mb .setName (name ).setCmd (sshTimezone .withSSHCommand ([]string {"timedatectl show --property Timezone" })).run ()
286
+ Expect (err ).ToNot (HaveOccurred ())
287
+ Expect (timezoneSession ).To (Exit (0 ))
288
+ Expect (timezoneSession .outputToString ()).To (ContainSubstring ("Pacific/Honolulu" ))
283
289
})
284
290
285
291
It ("machine init with volume" , func () {
Original file line number Diff line number Diff line change @@ -166,10 +166,11 @@ func (ign *DynamicIgnition) GenerateIgnitionConfig() error {
166
166
},
167
167
LinkEmbedded1 : LinkEmbedded1 {
168
168
Hard : BoolToPtr (false ),
169
- // We always want this value in unix form (/path/to/something) because this is being
170
- // set in the machine OS (always Linux). However, filepath.join on windows will use a "\\"
171
- // separator; therefore we use ToSlash to convert the path to unix style
172
- Target : filepath .ToSlash (filepath .Join ("/usr/share/zoneinfo" , tz )),
169
+ // We always want this value in unix form (../usr/share/zoneinfo) because this is being
170
+ // set in the machine OS (always Linux) and systemd needs the relative symlink. However,
171
+ // filepath.join on windows will use a "\\" separator so use path.Join() which always
172
+ // uses the slash.
173
+ Target : path .Join ("../usr/share/zoneinfo" , tz ),
173
174
},
174
175
}
175
176
ignStorage .Links = append (ignStorage .Links , tzLink )
You can’t perform that action at this time.
0 commit comments