projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81148d5
)
scripts: add support for "swap" filesystem type
45/301845/2
author
Łukasz Stelmach
<l.stelmach@samsung.com>
Fri, 24 Nov 2023 10:55:12 +0000
(11:55 +0100)
committer
Seung-Woo Kim
<sw0312.kim@samsung.com>
Mon, 27 Nov 2023 01:53:21 +0000
(
01:53
+0000)
Run mkswap(8) for partitions with have their fstype set to "swap". x86
emulator images require swap partition to be present.
Change-Id: Ia8e9be666f1f2c587396b8e11bf515d02370a2ad
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
scripts/tizen/sd_fusing.py
patch
|
blob
|
history
diff --git
a/scripts/tizen/sd_fusing.py
b/scripts/tizen/sd_fusing.py
index
3952681
..
e6b5877
100755
(executable)
--- a/
scripts/tizen/sd_fusing.py
+++ b/
scripts/tizen/sd_fusing.py
@@
-473,6
+473,15
@@
def mkpart(args, target):
if proc.returncode != 0:
log.error(f"Failed to create ext4 filesystem on {d}")
sys.exit(1)
+ elif part['fstype'] == 'swap':
+ argv = ['mkswap', '-L', part['name'], d]
+ logging.debug(" ".join(argv))
+ proc = subprocess.run(argv,
+ stdin=subprocess.DEVNULL,
+ stdout=None, stderr=None)
+ if proc.returncode != 0:
+ log.error(f"Failed to format swap partition {d}")
+ sys.exit(1)
elif part['fstype'] == 'raw':
pass
target.initialize_parameters()