diff options
author | Claudius Heine <ch@denx.de> | 2022-05-15 12:06:00 +0530 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-16 23:19:18 +0100 |
commit | d5f64c38f12c2f09c378efc6ff1be621acf4249f (patch) | |
tree | 19a9dae0c299edec7350dd1e208334516812ef3b /scripts/lib/wic/plugins/imager/direct.py | |
parent | 88c200c75187f4c2bbdcb738c5aeb30b69b25b9b (diff) | |
download | poky-d5f64c38f12c2f09c378efc6ff1be621acf4249f.tar.gz |
wic: added fspassno parameter to partition
The `fspassno` parameter allows to overwrite the value of the last
column (`fs_passno`) in the /etc/fstab of the target root file system.
This allows to have periodic file system checks.
(From OE-Core rev: b9b9f71e6f37bfbf954ade518391b242669481e3)
Signed-off-by: Claudius Heine <ch@denx.de>
Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins/imager/direct.py')
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index 4d0b836ef6..da483daed5 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py | |||
@@ -138,8 +138,9 @@ class DirectPlugin(ImagerPlugin): | |||
138 | device_name = "/dev/%s%s%d" % (part.disk, prefix, part.realnum) | 138 | device_name = "/dev/%s%s%d" % (part.disk, prefix, part.realnum) |
139 | 139 | ||
140 | opts = part.fsopts if part.fsopts else "defaults" | 140 | opts = part.fsopts if part.fsopts else "defaults" |
141 | passno = part.fspassno if part.fspassno else "0" | ||
141 | line = "\t".join([device_name, part.mountpoint, part.fstype, | 142 | line = "\t".join([device_name, part.mountpoint, part.fstype, |
142 | opts, "0", "0"]) + "\n" | 143 | opts, "0", passno]) + "\n" |
143 | 144 | ||
144 | fstab_lines.append(line) | 145 | fstab_lines.append(line) |
145 | updated = True | 146 | updated = True |