mirror of
https://abf.rosa.ru/djam/livecd-tools.git
synced 2025-02-23 15:42:58 +00:00
28 lines
1,017 B
Diff
28 lines
1,017 B
Diff
![]() |
From a7ab04c25c306e79457312a8aadf4b1c0bbef535 Mon Sep 17 00:00:00 2001
|
||
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
||
|
Date: Wed, 11 Sep 2019 00:21:42 +0300
|
||
|
Subject: [PATCH] hack: use bash -x for %%post scripts
|
||
|
|
||
|
The value of s.interp is somwhere from python-imgcreate,
|
||
|
let's invoke bash in debug mode to get better logging of what happens in %%post
|
||
|
---
|
||
|
imgcreate/creator.py | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/imgcreate/creator.py b/imgcreate/creator.py
|
||
|
index 9a07f62..0657500 100644
|
||
|
--- a/imgcreate/creator.py
|
||
|
+++ b/imgcreate/creator.py
|
||
|
@@ -618,7 +618,7 @@ class ImageCreator(object):
|
||
|
script = "/tmp/" + os.path.basename(path)
|
||
|
|
||
|
try:
|
||
|
- subprocess.check_call([s.interp, script],
|
||
|
+ subprocess.check_call(["/bin/bash", "-x", script],
|
||
|
preexec_fn = preexec, env = env)
|
||
|
except OSError, e:
|
||
|
raise CreatorError("Failed to execute %%post script "
|
||
|
--
|
||
|
2.20.1
|
||
|
|