mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
rootfs-postcommands.bbclass: Follow function rename in rootfspostcommands.py
'shadow_sort' was renamed to 'tidy_shadowutils_files' in rootfspostcommands.py so we reflect this in SORT_PASSWD_POSTPROCESS_COMMAND. This also creates a deprecation function for 'shadow_sort'. (From OE-Core rev: b474d7598d0803ba92b01944b961b28beec3bfe2) Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
50f150e7e3
commit
e141072888
@@ -63,7 +63,7 @@ inherit image-artifact-names
|
||||
# systemd_sysusers_create and set_user_group. Using :append is not
|
||||
# enough for that, set_user_group is added that way and would end
|
||||
# up running after us.
|
||||
SORT_PASSWD_POSTPROCESS_COMMAND ??= " sort_passwd; "
|
||||
SORT_PASSWD_POSTPROCESS_COMMAND ??= " tidy_shadowutils_files; "
|
||||
python () {
|
||||
d.appendVar('ROOTFS_POSTPROCESS_COMMAND', '${SORT_PASSWD_POSTPROCESS_COMMAND}')
|
||||
d.appendVar('ROOTFS_POSTPROCESS_COMMAND', 'rootfs_reproducible;')
|
||||
@@ -221,9 +221,20 @@ serial_autologin_root () {
|
||||
fi
|
||||
}
|
||||
|
||||
python sort_passwd () {
|
||||
python tidy_shadowutils_files () {
|
||||
import rootfspostcommands
|
||||
rootfspostcommands.sort_passwd(d.expand('${IMAGE_ROOTFS}${sysconfdir}'))
|
||||
rootfspostcommands.tidy_shadowutils_files(d.expand('${IMAGE_ROOTFS}${sysconfdir}'))
|
||||
}
|
||||
|
||||
python sort_passwd () {
|
||||
"""
|
||||
Deprecated in the favour of tidy_shadowutils_files.
|
||||
"""
|
||||
import rootfspostcommands
|
||||
bb.warn('[sort_passwd] You are using a deprecated function for '
|
||||
'SORT_PASSWD_POSTPROCESS_COMMAND. The default one is now called '
|
||||
'"tidy_shadowutils_files".')
|
||||
rootfspostcommands.tidy_shadowutils_files(d.expand('${IMAGE_ROOTFS}${sysconfdir}'))
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user