base-passwd: sed installed file instead of original
When we change the ROOT_HOME the sed regex does not match if we are running the do_install() a second time, so sed the installed file and preserve the original so that the sed regex is matched correctly in the original [YOCTO #5765] (From OE-Core rev: 6007b955ce990e493a9dbf225290a9c7e133feee) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
370b2d8196
commit
49cdb68e3b
|
@ -28,8 +28,8 @@ do_install () {
|
|||
${D}${mandir}/pl/man8/update-passwd.8
|
||||
gzip -9 ${D}${mandir}/man8/* ${D}${mandir}/pl/man8/*
|
||||
install -d -m 755 ${D}${datadir}/base-passwd
|
||||
sed -i 's#:/root:#:${ROOT_HOME}:#' ${S}/passwd.master
|
||||
install -o root -g root -p -m 644 ${S}/passwd.master ${D}${datadir}/base-passwd/
|
||||
sed -i 's#:/root:#:${ROOT_HOME}:#' ${D}${datadir}/base-passwd/passwd.master
|
||||
install -o root -g root -p -m 644 ${S}/group.master ${D}${datadir}/base-passwd/
|
||||
|
||||
install -d -m 755 ${D}${docdir}/${BPN}
|
||||
|
|
Loading…
Reference in New Issue