We achieve this size reduction quite simply:
strip --strip-debug /tools/lib/* strip --strip-unneeded /tools/{,s}bin/* rm -rf /tools/{,share}/{info,man}The strip command is clever enough to remove the debug stuff automatically, but the command to [r]e[m]ove the documentation is a bit more brutal.
Finally, the toolchain is currently owned by the lfs user, because that is how we made it. This will screw it up once we chroot into it, because there is no lfs user in the new system; only the host. SO we need to change the ownership of the whole tools directory. First exit the su - lfs system:
exitThen simply:
chown -R root:root /media/lfs/toolsThis command [ch]anges the [own]ership of the [/media/lfs/tools] folder to the user [root] of group [root]. Simple enough. Oh, hang on, not it isn't. Error fucking permission bullshit city again.
sudo chown -R root:root /media/lfs/toolsThat's got the bastard.
The toolchain is DONE! Have a beer.
No comments:
Post a Comment