post-build script is called before rootfs tweaking
Hello,
buildroot's documentation says:
Quoted 3 lines
In the Buildroot configuration, you can specify the path to a *post-build script*, that gets called /after/ Buildroot builds all the selected software, but /before/ the rootfs packages are assembled.
I understand this the way that the post-build script is called as the last action before package assembly.
In fact the post-build script is called before some modifications take place:
Quoted 18 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Executing post-build script
Completed post-build scriptmkdir -p
/home/stephan/buildroot/output/target/etc
echo "armstonea8" >/home/stephan/buildroot/output/target/etc/hostname/bin/sed -i -e '$a \127.0.1.1\tarmstonea8' \ -e '/^127.0.1.1/d'
/home/stephan/buildroot/output/target/etc/hosts
mkdir -p/home/stephan/buildroot/output/target/etc
echo "Welcome to armStoneA8" >/home/stephan/buildroot/output/target/etc/issue/bin/sed-i -e '/# GENERIC_SERIAL$/s~^.*#~ttySAC0::respawn:/sbin/getty -L ttySAC0 38400 vt100 #~' \
/home/stephan/buildroot/output/target/etc/inittab/bin/sed-i -e '/^[^#].*# REMOUNT_ROOTFS_RW$/s~^~#~'/home/stephan/buildroot/output/target/etc/inittab
rm -f/home/stephan/buildroot/output/build/locales.nopurgefor i in Cen_USde fr; do echo $i >>/home/stephan/buildroot/output/build/locales.nopurge; done
Quoted 9 lines
for dir in ; \
do \
for lang in $(cd $dir; ls .|grep -v man); \
do \
grep -qx $lang
/home/stephan/buildroot/output/build/locales.nopurge || rm -rf
$dir/$lang; \
done; \
doneIs this a bug or a feature? I'd prefer having the script called after the target directory is completely set up.
Kind regards
Stephan
Signature · 4 lines
reLinux - Stephan Hoffmann Am Schmidtgrund 124 50765 K?ln Tel. +49.221.95595-19 Fax: -64 www.reLinux.de sho at reLinux.de
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Stephan" == Stephan Hoffmann <[email protected]> writes:
Stephan> Hello,
Stephan> buildroot's documentation says:
Quoted 3 lines
Quoted 3 lines
In the Buildroot configuration, you can specify the path to a *post-build script*, that gets called /after/ Buildroot builds all the selected software, but /before/ the rootfs packages are assembled.
Stephan> I understand this the way that the post-build script is called as the Stephan> last action before package assembly.
Stephan> Is this a bug or a feature? I'd prefer having the script Stephan> called after the target directory is completely set up.
I would call it a bug. I recently fixed up a similar issue with the passwd handling happening after the post-build script.
Care to send a patch to fix it?
Signature · 1 line
Bye, Peter Korsgaard
Am 19.01.2013 19:19, schrieb Peter Korsgaard:
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Stephan" == Stephan Hoffmann <[email protected]> writes:
Stephan> Hello,
Stephan> buildroot's documentation says:Quoted 3 lines
Quoted 3 lines
In the Buildroot configuration, you can specify the path to a *post-build script*, that gets called /after/ Buildroot builds all the selected software, but /before/ the rootfs packages are assembled.
Stephan> I understand this the way that the post-build script is called as the Stephan> last action before package assembly.
Quoted 7 lines
Stephan> Is this a bug or a feature? I'd prefer having the script Stephan> called after the target directory is completely set up.
I would call it a bug. I recently fixed up a similar issue with the passwd handling happening after the post-build script.
Care to send a patch to fix it?
I can try, but at the moment I am too busy. Maybe somewhere next week.
Signature · 4 lines
reLinux - Stephan Hoffmann Am Schmidtgrund 124 50765 K?ln Tel. +49.221.95595-19 Fax: -64 www.reLinux.de sho at reLinux.de
Am 19.01.2013 19:28, schrieb Stephan Hoffmann:
Quoted 10 lines
Am 19.01.2013 19:19, schrieb Peter Korsgaard:
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Stephan" == Stephan Hoffmann <[email protected]> writes:
Stephan> Hello,
Stephan> buildroot's documentation says:Quoted 3 lines
Quoted 3 lines
In the Buildroot configuration, you can specify the path to a *post-build script*, that gets called /after/ Buildroot builds all the selected software, but /before/ the rootfs packages are assembled.
Stephan> I understand this the way that the post-build script is called as the Stephan> last action before package assembly.
Quoted 8 lines
Quoted 7 lines
Stephan> Is this a bug or a feature? I'd prefer having the script Stephan> called after the target directory is completely set up.
I would call it a bug. I recently fixed up a similar issue with the passwd handling happening after the post-build script.
Care to send a patch to fix it?
I can try, but at the moment I am too busy. Maybe somewhere next week.
This seems to be fixed in the meantime. I had this problem a distribution based on 2012.08.
Sorry, I should have tried with the latest version before bothering the list.
Kind regards
Stephan
Signature · 4 lines
reLinux - Stephan Hoffmann Am Schmidtgrund 124 50765 K?ln Tel. +49.221.95595-19 Fax: -64 www.reLinux.de sho at reLinux.de