Skip to content

Commit d2a449c

Browse files
committed
hack UpdateLDCache to exit 1 so runc dumps its logs
1 parent 5231b6c commit d2a449c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/ldconfig/ldconfig.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ func (l *Ldconfig) UpdateLDCache() error {
135135
if err := createLdsoconfdFile(ldsoconfdFilenamePattern, filteredDirectories...); err != nil {
136136
return fmt.Errorf("failed to update ld.so.conf.d: %w", err)
137137
}
138-
139-
return SafeExec(ldconfigPath, args, nil)
138+
// HACK
139+
slog.Info("UpdateLDCache exit", "ldconfigPath", ldconfigPath, "args", args)
140+
return fmt.Errorf("failed")
141+
// return SafeExec(ldconfigPath, args, nil)
140142
}
141143

142144
func (l *Ldconfig) prepareRoot() (string, error) {

0 commit comments

Comments
 (0)