mirror of
https://git.yoctoproject.org/poky
synced 2026-04-28 06:32:34 +02:00
wic: honor the SOURCE_DATE_EPOCH in case of updated fstab
In case user requested to build a binary repeatable package, it's required to honor the SOURCE_DATE_EPOCH environment variable. So forcefully set mtime inside all the routines which modify fstab in case it is updated. (From OE-Core rev: 99719a3712a88dce8450994d995803e126e49115) Signed-off-by: Sergei Zhmylev <s.zhmylev@yadro.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0cc7ac200d
commit
0ee936da2e
@@ -224,7 +224,7 @@ class RootfsPlugin(SourcePlugin):
|
||||
if part.update_fstab_in_rootfs and part.has_fstab and not part.no_fstab_update:
|
||||
fstab_path = os.path.join(new_rootfs, "etc/fstab")
|
||||
# Assume that fstab should always be owned by root with fixed permissions
|
||||
install_cmd = "install -m 0644 %s %s" % (part.updated_fstab_path, fstab_path)
|
||||
install_cmd = "install -m 0644 -p %s %s" % (part.updated_fstab_path, fstab_path)
|
||||
if new_pseudo:
|
||||
pseudo = cls.__get_pseudo(native_sysroot, new_rootfs, new_pseudo)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user