mirror of
https://github.com/rancher/os.git
synced 2025-07-10 21:33:04 +00:00
Cosmetic: Fixed „/var/log/boot: is a directory“ error in init
Signed-off-by: janeczku <jan@rancher.com>
This commit is contained in:
parent
493e12b9a3
commit
5494e76041
@ -362,9 +362,11 @@ func RunInit() error {
|
|||||||
bootLog := "/var/log/"
|
bootLog := "/var/log/"
|
||||||
if files, err := ioutil.ReadDir(bootLog); err == nil {
|
if files, err := ioutil.ReadDir(bootLog); err == nil {
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
filePath := filepath.Join(bootLog, file.Name())
|
if !file.IsDir() {
|
||||||
filesToCopy = append(filesToCopy, filePath)
|
filePath := filepath.Join(bootLog, file.Name())
|
||||||
log.Debugf("Swizzle: Found %s to save", filePath)
|
filesToCopy = append(filesToCopy, filePath)
|
||||||
|
log.Debugf("Swizzle: Found %s to save", filePath)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bootLog = "/var/log/boot/"
|
bootLog = "/var/log/boot/"
|
||||||
|
Loading…
Reference in New Issue
Block a user