Re: [lfs-dev] Armin's lfs-systemd book?
2014-04-26 16:32 GMT+08:00 akhiezer lf...@cruziero.com: Hi, Armin, are you (or anyone) going to be continuing to maintain the pure-systemd lfs book? I'm using a rough patch for jhalfs build. Or are you (Armin) 'just' going to contrib directly to main mixed(-up)-lfs from now on? (Apols if have missed a note on this over past few weeks). rgds, akh -- -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page remove-sysvinit.patch Description: Binary data -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] systemd ifup get run before systemd rename interface sometimes.
$ journalctl -b|grep enp Apr 08 22:37:25 vm1 ifup[123]: Adding IPv4 address 192.168.3.1 to the enp4s0 interface...Cannot find device enp4s0 Apr 08 22:37:26 vm1 systemd-udevd[173]: renamed network interface eth0 to enp4s0 So it won't startup network. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] systemd ifup get run before systemd rename interface sometimes.
2014-04-09 0:07 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: $ journalctl -b|grep enp Apr 08 22:37:25 vm1 ifup[123]: Adding IPv4 address 192.168.3.1 to the enp4s0 interface...Cannot find device enp4s0 Apr 08 22:37:26 vm1 systemd-udevd[173]: renamed network interface eth0 to enp4s0 So it won't startup network. Are you using /etc/udev/rules.d/70-persistent-net.rules? No In the latest book it should be created automatically. I don't know There's no 70-persistent-net.rules when in vmware or qemu. I haven't test it on real machine. what rule would cause renaming from eth0 to anything. BTW, the contents of 70-persistent-net.rules has changed lately. The predicate KERNEL==something has been removed. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] systemd ifup get run before systemd rename interface sometimes.
2014-04-08 22:50 GMT+08:00 Sebastian Plotz sebastian-pl...@web.de: Am 08.04.2014 16:40, schrieb xinglp: $ journalctl -b|grep enp Apr 08 22:37:25 vm1 ifup[123]: Adding IPv4 address 192.168.3.1 to the enp4s0 interface...Cannot find device enp4s0 Apr 08 22:37:26 vm1 systemd-udevd[173]: renamed network interface eth0 to enp4s0 So it won't startup network. Wouldn't it be the easiest way to let systemd configure the network interfaces? http://coreos.com/blog/intro-to-systemd-networkd/ http://www.freedesktop.org/software/systemd/man/systemd.link.html http://www.freedesktop.org/software/systemd/man/systemd.network.html Thanks, I'll try to learn this way. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] systemd ifup get run before systemd rename interface sometimes.
2014-04-09 0:07 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: $ journalctl -b|grep enp Apr 08 22:37:25 vm1 ifup[123]: Adding IPv4 address 192.168.3.1 to the enp4s0 interface...Cannot find device enp4s0 Apr 08 22:37:26 vm1 systemd-udevd[173]: renamed network interface eth0 to enp4s0 So it won't startup network. This issue only in vmware, not qemu. Are you using /etc/udev/rules.d/70-persistent-net.rules? In the latest book it should be created automatically. I don't know what rule would cause renaming from eth0 to anything. BTW, the contents of 70-persistent-net.rules has changed lately. The predicate KERNEL==something has been removed. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] systemd ifup get run before systemd rename interface sometimes.
2014-04-08 22:50 GMT+08:00 Sebastian Plotz sebastian-pl...@web.de: Am 08.04.2014 16:40, schrieb xinglp: $ journalctl -b|grep enp Apr 08 22:37:25 vm1 ifup[123]: Adding IPv4 address 192.168.3.1 to the enp4s0 interface...Cannot find device enp4s0 Apr 08 22:37:26 vm1 systemd-udevd[173]: renamed network interface eth0 to enp4s0 So it won't startup network. Wouldn't it be the easiest way to let systemd configure the network interfaces? It works well for my problemed vmware. I think we don't need ifup ifdown script for systemd now. http://coreos.com/blog/intro-to-systemd-networkd/ http://www.freedesktop.org/software/systemd/man/systemd.link.html http://www.freedesktop.org/software/systemd/man/systemd.network.html -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] systemd ifup get run before systemd rename interface sometimes.
2014-04-09 10:12 GMT+08:00 William Harrington kb0...@berzerkula.org: On Apr 8, 2014, at 8:00 PM, xinglp wrote: Wouldn't it be the easiest way to let systemd configure the network interfaces? It works well for my problemed vmware. I think we don't need ifup ifdown script for systemd now. It's best to let systemd's networkd deal with all of the network. You can change interface names, setup bonds, and all kinds of other configurations and settings. The only reason a person will not want to use systemd networkd is when: the dhcp server requires more information from a dhcp client which systemd networkd's dhcp client can't provide (such as a hostname) And there's no dhcp ipv6 cleint in systemd. wireless is to be used with encryption wpa_supplicant support systemd already. see this https://bbs.archlinux.org/viewtopic.php?id=178625 and probably some others. When having both systemd and sysvinit in the LFS Book, the network section would be best written so that if a user is using systemd, do this if using sysvinit, do this. Sincerely, William Harrington -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Major changes in -dev
2014-04-05 19:50 GMT+08:00 Armin K. kre...@email.com: On 04/05/2014 05:50 AM, Bruce Dubbs wrote: xinglp wrote: 2014-04-05 11:04 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: When boot into systemd, got the below message: Lets work the problems one at a time. [/usr/lib/tmpfiles.d/systemd.conf:25] Unknown group 'systemd-journal'. Something else I forgot. What happens if you add systemd-journal:x:97 to /etc/groups. There's no [FAILED] Failed to start Create Volatile Files and Directories. now, Good. I'll add that group to the book. I just rebuilt and am also having trouble with the renaming of the network connection. Try 'ls /sys/class/net' and make ifconfig conform to that. The ifup interface should work. I'm not sure why the login service is failing for you. It's working for me. The failure message wasn't very informative. -- Bruce You are missing messagebus user and group as well as adm and systemd-journal group. Please use the same values as in systemd book. This fix my problems, thanks. Only network was not bring up now. http://www.linuxfromscratch.org/lfs/view/systemd/chapter06/createfiles.html -- Note: My last name is not Krejzi. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Major changes in -dev
2014-04-04 6:11 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: I've committed a major change to the -dev version of LFS. The new version installs systemd and System V side-by-side with the ability to reconfigure and come up in the other system. The scripts to reconfigure are in /usr/local/sbin and are named set-systemd and set-sysv. I recommend re-reading Chapter 7 as there are a lot of changes there. The lfs-bootscripts now also install the needed systemd unit for bringing up the network. I've done a render of the book on the website, so the changes are reflected there now. I've tested the system. It initial boot comes up using System V, but I've also been able to reconfigure and come up in systemd as well as being able to revert back to System V. There have been no changes yet to BLFS to support these changes directly, but the System V boot scripts should still work without problems. I'm sure there are still latent bugs in the current commit, whether they be in scripts, build instructions, or text. Please test this out and let me know of needed changes. Some error messages during boot,sysv Mounting virtual file systems: /runcp: cannot stat '/lib/udev/devices/*': No such file or directory /etc/rc.d/rcS.d/S10udev: line 52: /lib/systemd-udevd: No such file or directory -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Major changes in -dev
2014-04-04 6:11 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: I'm sure there are still latent bugs in the current commit, whether they be in scripts, build instructions, or text. Please test this out and let me know of needed changes. set-systemd line 7 ln -sfvn $(tool}-systemd /sbin/${tool} should be ln -sfvn ${tool}-systemd /sbin/${tool} -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Major changes in -dev
When boot into systemd, got the below message: [FAILED] Failed to start Create Volatile Files and Directories. See 'systemctl status systemd-tmpfiles-setup.service' for details. ---split--- root [ ~ ]# systemctl status systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service - Create Volatile Files and Directories Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-setup.service; static) Active: failed (Result: exit-code) since Sat 2014-04-05 02:24:19 GMT-8; 8h ago Docs: man:tmpfiles.d(5) man:systemd-tmpfiles(8) Process: 126 ExecStart=/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=1/FAILURE) Main PID: 126 (code=exited, status=1/FAILURE) Apr 05 02:24:19 lfs_linux systemd-tmpfiles[126]: [/usr/lib/tmpfiles.d/systemd.conf:25] Unknown group 'systemd-journal'. Apr 05 02:24:19 lfs_linux systemd-tmpfiles[126]: [/usr/lib/tmpfiles.d/systemd.conf:26] Unknown group 'systemd-journal'. Apr 05 02:24:19 lfs_linux systemd-tmpfiles[126]: [/usr/lib/tmpfiles.d/systemd.conf:27] Unknown group 'systemd-journal'. Apr 05 02:24:19 lfs_linux systemd-tmpfiles[126]: [/usr/lib/tmpfiles.d/systemd.conf:28] Unknown group 'systemd-journal'. Apr 05 02:24:19 lfs_linux systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE Apr 05 02:24:19 lfs_linux systemd[1]: Failed to start Create Volatile Files and Directories. Apr 05 02:24:19 lfs_linux systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state. ==split [FAILED] Failed to start Login Service. See 'systemctl status systemd-logind.service' for details. ---split--- root [ ~ ]# systemctl status systemd-logind.service systemd-logind.service - Login Service Loaded: loaded (/lib/systemd/system/systemd-logind.service; static) Active: activating (auto-restart) (Result: exit-code) since Sat 2014-04-05 10:39:21 GMT-8; 26ms ago Docs: man:systemd-logind.service(8) man:logind.conf(5) http://www.freedesktop.org/wiki/Software/systemd/logind http://www.freedesktop.org/wiki/Software/systemd/multiseat Process: 230 ExecStart=/lib/systemd/systemd-logind (code=exited, status=1/FAILURE) Main PID: 230 (code=exited, status=1/FAILURE) Status: Shutting down... Apr 05 10:39:21 lfs_linux systemd[1]: systemd-logind.service: main process exited, code=exited, status=1/FAILURE Apr 05 10:39:21 lfs_linux systemd[1]: Failed to start Login Service. Apr 05 10:39:21 lfs_linux systemd[1]: Unit systemd-logind.service entered failed state. Apr 05 10:39:21 lfs_linux systemd[1]: systemd-logind.service has no holdoff time, scheduling restart. split And there is a long delay before login: show up. Also, /etc/sysconfig/ifconfig.eth0 was not bringed up. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Major changes in -dev
2014-04-05 10:59 GMT+08:00 William Harrington kb0...@berzerkula.org: On Apr 4, 2014, at 9:44 PM, xinglp wrote: [FAILED] Failed to start Create Volatile Files and Directories. See 'systemctl status systemd-tmpfiles-setup.service' for details. View the README in the systemd-xxx/ source directory or at /usr/share/ systemd-xxx/README and make sure your kernel options are proper. I'll check those options later. Sincerely, WIlliam Harrington -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Major changes in -dev
2014-04-05 11:04 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: When boot into systemd, got the below message: Lets work the problems one at a time. [FAILED] Failed to start Create Volatile Files and Directories. See 'systemctl status systemd-tmpfiles-setup.service' for details. ---split--- root [ ~ ]# systemctl status systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service - Create Volatile Files and Directories Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-setup.service; static) Active: failed (Result: exit-code) since Sat 2014-04-05 02:24:19 GMT-8; 8h ago Docs: man:tmpfiles.d(5) man:systemd-tmpfiles(8) Process: 126 ExecStart=/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=1/FAILURE) Main PID: 126 (code=exited, status=1/FAILURE) Apr 05 02:24:19 lfs_linux systemd-tmpfiles[126]: [/usr/lib/tmpfiles.d/systemd.conf:25] Unknown group 'systemd-journal'. Something else I forgot. What happens if you add systemd-journal:x:97 to /etc/groups. There's no [FAILED] Failed to start Create Volatile Files and Directories. now, others not fixed. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Major changes in -dev
2014-04-05 10:59 GMT+08:00 William Harrington kb0...@berzerkula.org: On Apr 4, 2014, at 9:44 PM, xinglp wrote: [FAILED] Failed to start Create Volatile Files and Directories. See 'systemctl status systemd-tmpfiles-setup.service' for details. View the README in the systemd-xxx/ source directory or at /usr/share/ systemd-xxx/README and make sure your kernel options are proper. All these options in systemd-xxx/README were proper set, except Filesystem wide access notification metioned in http://wiki.gentoo.org/wiki/Systemd , I'm recompiling. Sincerely, WIlliam Harrington -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] jhalfs not create proper Makefile for ch6 autoconf
There's many things missed for 105-autoconf: section. with lfs_book r10512 and jhalfs r3785 104-perl: 103-inetutils @$(call echo_message, Building) # @export BASHBIN=$(SHELL) $(SHELL) progress_bar.sh $@ $$PPID @echo $(nl_)`date`$(nl_) logs/$@-5.18.2 @$(PRT_DU_CR) logs/$@-5.18.2 @$(call remove_existing_dirs2,perl-5.18.2.tar.bz2) @$(call unpack2,perl-5.18.2.tar.bz2) @$(call get_pkg_root2) @echo export CFLAGS=\-O2 -pipe\ envars @echo export CXXFLAGS=\-O2 -pipe\ envars @echo export OTHER_CFLAGS=\-O2 -pipe\ envars @echo export OTHER_CXXFLAGS=\-O2 -pipe\ envars @echo export MAKEFLAGS=\-j2\ envars @source envars \ $(crCMDSDIR)/chapter06/$@ logs/$@-5.18.2 21 \ $(PRT_DU_CR) logs/$@-5.18.2 @$(call remove_build_dirs2,perl) @$(call housekeeping) 105-autoconf: 104-perl @$(call echo_message, Building) # @export BASHBIN=$(SHELL) $(SHELL) progress_bar.sh $@ $$PPID @echo $(nl_)`date`$(nl_) logs/$@ @$(PRT_DU_CR) logs/$@ @source envars \ $(crCMDSDIR)/chapter06/$@ logs/$@ 21 \ $(PRT_DU_CR) logs/$@ @$(call housekeeping) 106-automake: 105-autoconf @$(call echo_message, Building) # @export BASHBIN=$(SHELL) $(SHELL) progress_bar.sh $@ $$PPID @echo $(nl_)`date`$(nl_) logs/$@-1.14.1 @$(PRT_DU_CR) logs/$@-1.14.1 @$(call remove_existing_dirs2,automake-1.14.1.tar.xz) @$(call unpack2,automake-1.14.1.tar.xz) @$(call get_pkg_root2) @echo export CFLAGS=\-O2 -pipe\ envars @echo export CXXFLAGS=\-O2 -pipe\ envars @echo export OTHER_CFLAGS=\-O2 -pipe\ envars @echo export OTHER_CXXFLAGS=\-O2 -pipe\ envars @echo export MAKEFLAGS=\-j2\ envars @source envars \ $(crCMDSDIR)/chapter06/$@ logs/$@-1.14.1 21 \ $(PRT_DU_CR) logs/$@-1.14.1 @$(call remove_build_dirs2,automake) @$(call housekeeping) -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] eudev has replaced systemd in LFS
2014-03-08 3:54 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: 2014-03-08 2:09 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: And most importantly, /dev/disk was not created. I got it, eudev should be after util-linux, for libblkid It's not picking up util-linux from Chapter 5? If not, we'll need to adjust some flags. In the last version I build with jhalfs, udevd not linked to libblkid.so OK, I see in my log I have checking for BLKID... no looking at the configure script, I think we need to add: PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/tools/lib/pkgconfig as a part of the ./configure line. A more straight forward way might be to add: BLKID_CFLAGS=-I/tools/include BLKID_LIBS=-L/tools/lib Do you want to test that for us? Yes, I'm doing this now. It will finish in about 4 hours on machine. And I just finished a build with eudev after util-linux, it boot fine, but enpXsXX change to eth0 again. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] eudev has replaced systemd in LFS
2014-03-08 3:54 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: 2014-03-08 2:09 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: And most importantly, /dev/disk was not created. I got it, eudev should be after util-linux, for libblkid It's not picking up util-linux from Chapter 5? If not, we'll need to adjust some flags. In the last version I build with jhalfs, udevd not linked to libblkid.so OK, I see in my log I have checking for BLKID... no looking at the configure script, I think we need to add: PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/tools/lib/pkgconfig as a part of the ./configure line. A more straight forward way might be to add: BLKID_CFLAGS=-I/tools/include BLKID_LIBS=-L/tools/lib Do you want to test that for us? Tested, it's ok. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] eudev has replaced systemd in LFS
2014-03-08 22:32 GMT+08:00 William Harrington kb0...@berzerkula.org: On Mar 8, 2014, at 5:34 AM, xinglp wrote: Yes, I'm doing this now. It will finish in about 4 hours on machine. And I just finished a build with eudev after util-linux, it boot fine, but enpXsXX change to eth0 again. That should happen when you enable the rule generator and have /etc/ udev/rules.d/80-net-name-slot.rules if I'm not mistaken. /etc/udev/rules.d/70-persistent-net.rules was created on the first boot by default. with below content. =begin # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x8086:0x10f5 (e1000e) SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==xx, ATTR{dev_id}==0x0, ATTR{type}==1, KERNEL==eth*, NAME=eth0 =end Sincerely, William Harrington -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] eudev has replaced systemd in LFS
2014-03-07 7:14 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: I've replaced systemd wuth eudev in LFS. Please have a look and test. Feedback welcomed. /etc/rc.d/init.d/udev line 52 replace /lib/udev/udevd with /sbin/udevd And most importantly, /dev/disk was not created. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] eudev has replaced systemd in LFS
2014-03-08 1:19 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: 2014-03-07 7:14 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: I've replaced systemd wuth eudev in LFS. Please have a look and test. Feedback welcomed. /etc/rc.d/init.d/udev line 52 replace /lib/udev/udevd with /sbin/udevd Right. I did that when testing but forgot to update the boot scripts in the book. And most importantly, /dev/disk was not created. Don't know right now. Is it needed? When use initrd, with /dev/disk/by-xxx present, I can use root=UUID=xxx instead of root=/dev/sdxx -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] eudev has replaced systemd in LFS
2014-03-07 23:53 GMT+08:00 xinglp xin...@gmail.com: 2014-03-07 7:14 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: I've replaced systemd wuth eudev in LFS. Please have a look and test. Feedback welcomed. /etc/rc.d/init.d/udev line 52 replace /lib/udev/udevd with /sbin/udevd And most importantly, /dev/disk was not created. I got it, eudev should be after util-linux, for libblkid -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] eudev has replaced systemd in LFS
2014-03-08 2:09 GMT+08:00 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: And most importantly, /dev/disk was not created. I got it, eudev should be after util-linux, for libblkid It's not picking up util-linux from Chapter 5? If not, we'll need to adjust some flags. In the last version I build with jhalfs, udevd not linked to libblkid.so -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] eudev has replaced systemd in LFS
2014-03-08 2:32 GMT+08:00 William Harrington kb0...@berzerkula.org: On Mar 7, 2014, at 11:51 AM, xinglp wrote: When use initrd, with /dev/disk/by-xxx present, I can use root=UUID=xxx instead of root=/dev/sdxx Your initrd should do that. You need to troubleshoot your initrd. inirtd can do that only when /dev/disk/by-xxx exist. see http://www.linuxfromscratch.org/blfs/view/svn/postlfs/initramfs.html case $root in /dev/* ) device=$root ;; UUID=* ) eval $root; device=/dev/disk/by-uuid/$UUID ;; LABEL=*) eval $root; device=/dev/disk/by-label/$LABEL ;; ) echo No root device specified. ; problem;; esac Sincerely, William Harrinton -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] [lfs-book] r10440 - in trunk/BOOK: . chapter01 chapter06
2014/1/17 Bruce Dubbs bruce.du...@gmail.com: Armin K. wrote: On 01/17/2014 05:03 AM, Bruce Dubbs wrote: Moving to -dev. xinglp wrote: OK, thanks. Can you test: rm -rf --one-file-system /run/* /tmp/* Same error. For background see http://www.mail-archive.com/lfs-book@linuxfromscratch.org/msg18517.html I'm not sure how to handle this. At the end of Chapter 6 we don't need either /dev/shm or /run/shm. What we do when mounting virtual file systems is: if [ -h $LFS/dev/shm ]; then link=$(readlink $LFS/dev/shm) mkdir -pv $LFS/$link mount -vt tmpfs shm $LFS/$link unset link else mount -vt tmpfs shm $LFS/dev/shm fi This means that /run/shm only exists if /dev/shm is a symlink. We are still in chroot when cleaning up but we can still umount /run/shm before deleting. Probably something like: [ -e /run/shm ] umount /run/shm rm -rf /run/* /tmp/* Hose does this sound? -- Bruce Sorry to jump in, but I want to mention that maybe mounting a tmpfs at /run itself during the build might be easier. I now remember you mentioning that before. Let me run a test of that. Or use mount -o bind /run $LFS/run, which is better? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] [lfs-book] r10440 - in trunk/BOOK: . chapter01 chapter06
2014/1/17 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: 2014/1/17 Bruce Dubbs bruce.du...@gmail.com: Armin K. wrote: On 01/17/2014 05:03 AM, Bruce Dubbs wrote: Moving to -dev. xinglp wrote: OK, thanks. Can you test: rm -rf --one-file-system /run/* /tmp/* Same error. For background see http://www.mail-archive.com/lfs-book@linuxfromscratch.org/msg18517.html I'm not sure how to handle this. At the end of Chapter 6 we don't need either /dev/shm or /run/shm. What we do when mounting virtual file systems is: if [ -h $LFS/dev/shm ]; then link=$(readlink $LFS/dev/shm) mkdir -pv $LFS/$link mount -vt tmpfs shm $LFS/$link unset link else mount -vt tmpfs shm $LFS/dev/shm fi This means that /run/shm only exists if /dev/shm is a symlink. We are still in chroot when cleaning up but we can still umount /run/shm before deleting. Probably something like: [ -e /run/shm ] umount /run/shm rm -rf /run/* /tmp/* How does this sound? Sorry to jump in, but I want to mention that maybe mounting a tmpfs at /run itself during the build might be easier. I now remember you mentioning that before. Let me run a test of that. Or use mount -o bind /run $LFS/run, which is better? I haven't finished testing yet as I'm also working on a util-linux integration with udev problem, but why would we want to bind mount /run? The only place /run is used in the book is for the tests in util-linux. Mounting a tmpfs is fairly painless. I don't think a bind mount would be appropriate because of the potential of interfering with the host system. We also bind /dev to $LFS/dev, and mounting {devpts,sysfs.procfs} to $LFS/xxx is same as bind. Use mount -o bind xxx make the the guest similar to host system, but as you say, may interfer the host system. I was use bind when I build blfs without reboot into it. Since /run is special than others, it may be changed by guest system while building. We should use tmpfs, but do the same work as bootscript do. http://www.linuxfromscratch.org/lfs/view/development/scripts/apds04.html mkdir -p /run/var /run/lock /run/shm chmod 1777 /run/shm -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] Create symbol link for kmod and Procps-ng without version.
diff -Naurz BOOK.0/chapter06/kmod.xml BOOK/chapter06/kmod.xml --- BOOK.0/chapter06/kmod.xml +++ BOOK/chapter06/kmod.xml @@ -95,7 +95,9 @@ para Make sure that all libraries are in the correct directory: /para screenuserinput remap=installmv -v /usr/lib/libkmod.so.* /lib -ln -svf ../../lib/libkmod.so.2.2.5 /usr/lib/libkmod.so/userinput/screen +pushd /usr/lib/ +ln -svf ../../lib/libkmod.so.*.* libkmod.so +popd/userinput/screen !-- Note to editors: When upgrading kmod, make sure the library version specified above has not changed -- diff -Naurz BOOK.0/chapter06/procps.xml BOOK/chapter06/procps.xml --- BOOK.0/chapter06/procps.xml +++ BOOK/chapter06/procps.xml @@ -82,7 +82,10 @@ screenuserinput remap=installmv -v /usr/bin/pidof /bin mv -v /usr/lib/libprocps.so.* /lib -ln -sfv ../../lib/libprocps.so.3.0.0 /usr/lib/libprocps.so/userinput/screen +pushd /usr/lib/ +ln -sfv ../../lib/libprocps.so.*.* libprocps.so +popd +/userinput/screen !-- Note to devs: check the library version for new releases -- libprocps-kmod-path.patch Description: Binary data -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] util-linux issues
2013/5/15 Matt Burgess matt...@linuxfromscratch.org: On Tue, 2013-05-14 at 13:59 -0500, Bruce Dubbs wrote: 1. The latest git commit in util-linux now has a fix for umount not remounting the root fs read only with a 'umount -a -r' command. I'm not sure if we should fix that in LFS or just wait until the next release of util-linux. We do have a workaround in place in the mountfs script, and it's a pretty minor issue right now. My inclination is to wait. I'd be inclined to wait as well. From the discussion I saw, the issue itself was fairly minor, and as you say has already been addressed. 2. Also, I did a test of setting /etc/mtab as a symlink to /proc/mounts and it seems to work properly although the output of 'mount' is a bit more verbose. My objection of 'mount' not specifying the device for the rootfs is fixed. I think this is done by reading the root= option on the kernel command line, so it may not work exactly right in all cases. For instance, it may not work if an initramfs is used and the root fs is specified by uuid or label. I have a feeling it'll still work if an initramfs is used. See the thread at http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/6718 where, half-way down Kay Sievers shows util-linux behaving correctly on an initramfs-based system. In any case, should we change the /etc/mtab entry to a symlink? It'd make the systemd branch merge slightly easier, as we already have it as a symlink over there :-) Seriously though, I think it should be a symlink. A number of advantages of doing so are at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494001 and whilst I don't think the majority are applicable to a base LFS system, if any of our users want to use features such as disk quotas, or user namespaces, then it'd be nice if this simple issue didn't get in their way. Regards, Matt. Since we use symlink now, /etc/init.d/mountfs need to be changed. These should be deleted. - log_info_msg Recording existing mounts in /etc/mtab... - /etc/mtab - - mount -f / || failed=1 - mount -f /proc || failed=1 - mount -f /sys || failed=1 - mount -f /run || failed=1 - mount -f /dev || failed=1 - (exit ${failed}) - evaluate_retval -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
2013/5/10 William Harrington kb0...@berzerkula.org: On May 9, 2013, at 10:44 PM, Bruce Dubbs wrote: You do need to change the mail command. Just comment it out and uncomment the echo command just before it. I copied and pasted the command from a browser and all works. I did change the mail address for the output destination as I don' think the book list wants a load of email from everyone using the script and being successful. I'm using php 5.4.12 with the http extension enabled. Very nice script. Sincerely, William Harrington OK, I will try to recompile my php according to blfs book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
2013/5/9 xinglp xin...@gmail.com 2013/5/8 Armin K. kre...@email.com On 05/08/2013 12:24 PM, purnomo hadi wrote: link 404 not found Please do not top post. File is here: http://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files.phps Would you please provide a zipped .php file of this script. The phps is not formatted well. All tabs were changed into blanks. And I got these errors with PHP 5.4.12 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 188 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 sh: -t: command not found -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
2013/5/9 Bruce Dubbs bruce.du...@gmail.com xinglp wrote: And I got these errors with PHP 5.4.12 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 188 PHP Warning: Invalid argument supplied for foreach() in /xxx/lfs-latest-files.php on line 26 That line is foreach ( $lines as $line ). That would indicate that the $lines array is null. That indicates that the ftp or http get command didn't work. Add a line echo $dirpath . \n; at the top of the get_packages() function to see what files are not being retrieved. I somehow suspect the sourceforge files, but it could be something else. sh: -t: command not found I have no idea where this came from. The the output is below: http://ftp.gnu.org/gnu/autoconf http://ftp.gnu.org/gnu/automake http://ftp.gnu.org/gnu/bash http://alpha.gnu.org/gnu/bc http://ftp.gnu.org/gnu/binutils http://ftp.gnu.org/gnu/bison http://www.bzip.org/1.0.6 http://sourceforge.net/projects/check/files/check/0.9.10 http://ftp.gnu.org/gnu/coreutils http://ftp.gnu.org/gnu/dejagnu http://ftp.gnu.org/gnu/diffutils http://prdownloads.sourceforge.net/e2fsprogs http://prdownloads.sourceforge.net/expect ftp://ftp.astron.com/pub/file PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 http://ftp.gnu.org/gnu/findutils http://prdownloads.sourceforge.net/flex http://ftp.gnu.org/gnu/gawk http://ftp.gnu.org/gnu/gcc/gcc-4.8.0 http://ftp.gnu.org/gnu/gdbm http://ftp.gnu.org/gnu/gettext http://ftp.gnu.org/gnu/glibc ftp://ftp.gmplib.org/pub/gmp-5.1.1 PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 http://ftp.gnu.org/gnu/grep http://ftp.gnu.org/gnu/groff http://ftp.gnu.org/gnu/grub http://ftp.gnu.org/gnu/gzip http://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/conglomeration//iana-etc http://ftp.gnu.org/gnu/inetutils http://www.kernel.org/pub/linux/utils/net/iproute2 http://ftp.altlinux.org/pub/people/legion/kbd http://www.kernel.org/pub/linux/utils/kernel/kmod http://www.greenwoodsoftware.com/less http://www.linuxfromscratch.org/lfs/downloads/development http://download.savannah.gnu.org/releases/libpipeline http://ftp.gnu.org/gnu/libtool http://www.kernel.org/pub/linux/kernel/v3.x http://ftp.gnu.org/gnu/m4 http://ftp.gnu.org/gnu/make http://download.savannah.gnu.org/releases/man-db http://www.kernel.org/pub/linux/docs/man-pages http://www.multiprecision.org/mpc/download http://www.mpfr.org/mpfr-3.1.2 http://ftp.gnu.org/gnu/ncurses http://ftp.gnu.org/gnu/patch http://www.cpan.org/src/5.0 http://pkgconfig.freedesktop.org/releases http://sourceforge.net/projects/procps-ng/files/Production http://prdownloads.sourceforge.net/psmisc http://ftp.gnu.org/gnu/readline http://ftp.gnu.org/gnu/sed http://pkg-shadow.alioth.debian.org/releases http://www.infodrom.org/projects/sysklogd/download http://download.savannah.gnu.org/releases/sysvinit http://ftp.gnu.org/gnu/tar http://prdownloads.sourceforge.net/tcl http://www.iana.org/time-zones/repository/releases http://ftp.gnu.org/gnu/texinfo http://www.freedesktop.org/software/systemd http://anduin.linuxfromscratch.org/sources/other http://www.kernel.org/pub/linux/utils/util-linux/v2.23 ftp://ftp.vim.org/pub/vim/unix PHP Warning: Invalid argument supplied for foreach() in /home/alex/.data/lfs_build/a.php on line 26 http://tukaani.org/xz http://www.zlib.net sh: -t: command not found -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
2013/5/9 Bruce Dubbs bruce.du...@gmail.com xinglp wrote: 2013/5/8 Armin K. kre...@email.com File is here: http://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files.phps Would you please provide a zipped .php file of this script. The phps is not formatted well. All tabs were changed into blanks. I abhor tabs in code. The file is less than 10K bytes. Why do you want it compressed? To run it, you only need to copy the .phps file to your local system and rename the extention to .php. I think the original php file may be different from the copied .phps to local system. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Script to check package versions
2013/5/8 Armin K. kre...@email.com On 05/08/2013 12:24 PM, purnomo hadi wrote: link 404 not found Please do not top post. File is here: http://anduin.linuxfromscratch.org/~bdubbs/lfs-latest-files.phps Would you please provide a zipped .php file of this script. The phps is not formatted well. All tabs were changed into blanks. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] linux 3.9 need bc.
We should move http://www.linuxfromscratch.org/blfs/view/svn/general/bc.html to lfs. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] tzdata2013c.tar.gz md5 not match
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] tzdata2013c.tar.gz md5 not match
Sorry, my mistake. It's the proxy I used changed somethings. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] [lfs-book] r10233 - in trunk/BOOK: chapter05 chapter06
2013/3/30 matt...@higgs.linuxfromscratch.org Author: matthew Date: Fri Mar 29 12:50:55 2013 New Revision: 10233 Log: Fix the alignment of some command continuation constructs. Modified: trunk/BOOK/chapter05/binutils-pass1.xml trunk/BOOK/chapter05/binutils-pass2.xml trunk/BOOK/chapter05/gcc-pass1.xml trunk/BOOK/chapter05/gcc-pass2.xml trunk/BOOK/chapter05/glibc.xml trunk/BOOK/chapter06/adjusting.xml trunk/BOOK/chapter06/glibc.xml Modified: trunk/BOOK/chapter05/binutils-pass1.xml == --- trunk/BOOK/chapter05/binutils-pass1.xml Fri Mar 29 12:39:17 2013 (r10232) +++ trunk/BOOK/chapter05/binutils-pass1.xml Fri Mar 29 12:50:55 2013 (r10233) @@ -78,7 +78,7 @@ paraNow prepare Binutils for compilation:/para -screenuserinput remap=configure../binutils-binutils-version;/configure \ +screenuserinput remap=configure../binutils-binutils-version;/configure \ --prefix=/tools\ --with-sysroot=$LFS\ --with-lib-path=/tools/lib \ Modified: trunk/BOOK/chapter05/binutils-pass2.xml == --- trunk/BOOK/chapter05/binutils-pass2.xml Fri Mar 29 12:39:17 2013 (r10232) +++ trunk/BOOK/chapter05/binutils-pass2.xml Fri Mar 29 12:50:55 2013 (r10233) @@ -56,12 +56,12 @@ paraPrepare Binutils for compilation:/para -screenuserinput remap=configureCC=$LFS_TGT-gcc\ -AR=$LFS_TGT-ar \ -RANLIB=$LFS_TGT-ranlib \ -../binutils-binutils-version;/configure \ ---prefix=/tools\ ---disable-nls \ +screenuserinput remap=configureCC=$LFS_TGT-gcc\ +AR=$LFS_TGT-ar \ +RANLIB=$LFS_TGT-ranlib \ +../binutils-binutils-version;/configure \ +--prefix=/tools\ +--disable-nls \ --with-lib-path=/tools/lib \ --with-sysroot/userinput/screen Modified: trunk/BOOK/chapter05/gcc-pass1.xml == --- trunk/BOOK/chapter05/gcc-pass1.xml Fri Mar 29 12:39:17 2013 (r10232) +++ trunk/BOOK/chapter05/gcc-pass1.xml Fri Mar 29 12:50:55 2013 (r10233) @@ -113,28 +113,28 @@ paraPrepare GCC for compilation:/para -screenuserinput remap=configure../gcc-gcc-version;/configure \ ---target=$LFS_TGT \ ---prefix=/tools\ ---with-sysroot=$LFS\ ---with-newlib \ ---without-headers \ ---with-local-prefix=/tools \ ---with-native-system-header-dir=/tools/include \ ---disable-nls \ ---disable-shared \ ---disable-multilib \ ---disable-decimal-float\ ---disable-threads \ ---disable-libatomic\ ---disable-libgomp \ ---disable-libitm \ ---disable-libmudflap \ ---disable-libquadmath \ ---disable-libsanitizer \ ---disable-libssp \ ---disable-libstdc++-v3 \ ---enable-languages=c,c++ \ +screenuserinput remap=configure../gcc-gcc-version;/configure \ +--target=$LFS_TGT\ +--prefix=/tools \ +--with-sysroot=$LFS \ +--with-newlib\ +--without-headers\ +--with-local-prefix=/tools \ +--with-native-system-header-dir=/tools/include \ +--disable-nls\ +--disable-shared \ +--disable-multilib \ +--disable-decimal-float \ +--disable-threads\ +--disable-libatomic \ +--disable-libgomp\ +--disable-libitm \ +--disable-libmudflap \ +--disable-libquadmath\ +--disable-libsanitizer \ +--disable-libssp \ +--disable-libstdc++-v3 \ +--enable-languages=c,c++ \ --with-mpfr-include=$(pwd)/../gcc-gcc-version;/mpfr/src \ --with-mpfr-lib=$(pwd)/mpfr/src/.libs/userinput/screen Modified: trunk/BOOK/chapter05/gcc-pass2.xml == --- trunk/BOOK/chapter05/gcc-pass2.xml Fri Mar 29 12:39:17 2013 (r10232) +++ trunk/BOOK/chapter05/gcc-pass2.xml Fri Mar 29 12:50:55 2013 (r10233) @@ -107,23 +107,24 @@ paraNow prepare GCC for compilation:/para
Re: [lfs-dev] The root file system not umount nor remount readonly during shutdown or reboot.
2013/3/22 xinglp xin...@gmail.com: Just edit /etc/init.d/mountfs. Change this line: umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc /dev/null to: umount -v -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc cat /proc/mounts sh Then you will see: Unmounting all other currently mounted file systems.../dev/pts : successfully umounted /: ignored /run : ignored /sys : ignored /proc: ignored /dev : ignored /: ignored rootfs / rootfs rw 0 0 devtmpfs /dev devtmpfs rw,relatime,size=255712k,nr_inodes=63928,mode=755 0 0 proc /proc proc rw,relatime 0 0 sysfs /sys sysfs rw,relatime 0 0 tmpfs /run tmpfs rw,relatime 0 0 /dev/sda2 / reiserfs rw,noatime 0 0 sh: no job control in this shell sh-4.2# I've fixed it by patch in attachement . And ... I change /etc/mtab to a symlink to /proc/mounts, the output of mount no more show things like /dev/root or rootfs. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] The root file system not umount nor remount readonly during shutdown or reboot.
fix_etc_mtab_and_mountfs.patch Description: Binary data -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] LFS 7.3 ISO discussion
2013/3/22 g@free.fr: - Mail original - De: cybertao psyber...@gmail.com À: LFS Developers Mailinglist lfs-dev@linuxfromscratch.org Envoyé: Mercredi 20 Mars 2013 22:45:24 Objet: Re: [lfs-dev] LFS 7.3 ISO discussion So, what's up with the linux kernel and overlayed filesystems? There's no support. That should be solved on 3.10 kernel, so maybe include a patch for a few month. http://lwn.net/Articles/542260/ I'm using the overlayfs patch from openwrt, there's version for kernel 3.8.x 3.9rc. Gilles -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] The root file system not umount nor remount readonly during shutdown or reboot.
Just edit /etc/init.d/mountfs. Change this line: umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc /dev/null to: umount -v -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc cat /proc/mounts sh Then you will see: Unmounting all other currently mounted file systems.../dev/pts : successfully umounted /: ignored /run : ignored /sys : ignored /proc: ignored /dev : ignored /: ignored rootfs / rootfs rw 0 0 devtmpfs /dev devtmpfs rw,relatime,size=255712k,nr_inodes=63928,mode=755 0 0 proc /proc proc rw,relatime 0 0 sysfs /sys sysfs rw,relatime 0 0 tmpfs /run tmpfs rw,relatime 0 0 /dev/sda2 / reiserfs rw,noatime 0 0 sh: no job control in this shell sh-4.2# -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] udev 197 change eth0 to enp0s25 on my box.
If so, the script init-net-rules.sh in udev-lfs-197-1 also need some change. DEVICES=$(eval echo /sys/class/net/{eth*,ath*,wlan*[0-9], ... -- DEVICES=$(eval echo /sys/class/net/{enp*,eth*,ath*,wlan*[0-9], ... -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] udev 197 change eth0 to enp0s25 on my box.
2013/1/10 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: If so, the script init-net-rules.sh in udev-lfs-197-1 also need some change. DEVICES=$(eval echo /sys/class/net/{eth*,ath*,wlan*[0-9], ... -- DEVICES=$(eval echo /sys/class/net/{enp*,eth*,ath*,wlan*[0-9], ... What kind of network card do you have? I've never heard of enp* outputs of lspci 00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03) Subsystem: Hewlett-Packard Company Device 30e1 Flags: bus master, fast devsel, latency 0, IRQ 42 Memory at 9070 (32-bit, non-prefetchable) [size=128K] Memory at 90727000 (32-bit, non-prefetchable) [size=4K] I/O ports at 20e0 [size=32] Capabilities: access denied Kernel driver in use: e1000e It was named to eth0 when I use udev 196. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] udev 197 change eth0 to enp0s25 on my box.
2013/1/10 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: 2013/1/10 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: If so, the script init-net-rules.sh in udev-lfs-197-1 also need some change. DEVICES=$(eval echo /sys/class/net/{eth*,ath*,wlan*[0-9], ... -- DEVICES=$(eval echo /sys/class/net/{enp*,eth*,ath*,wlan*[0-9], ... What kind of network card do you have? I've never heard of enp* outputs of lspci 00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03) Subsystem: Hewlett-Packard Company Device 30e1 Flags: bus master, fast devsel, latency 0, IRQ 42 Memory at 9070 (32-bit, non-prefetchable) [size=128K] Memory at 90727000 (32-bit, non-prefetchable) [size=4K] I/O ports at 20e0 [size=32] Capabilities: access denied Kernel driver in use: e1000e It was named to eth0 when I use udev 196. What is `ls -l /sys/class/net`? lo enp0s25 -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] udev 197 change eth0 to enp0s25 on my box.
2013/1/10 Bruce Dubbs bruce.du...@gmail.com: Bruce Dubbs wrote: xinglp wrote: 2013/1/10 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: If so, the script init-net-rules.sh in udev-lfs-197-1 also need some change. DEVICES=$(eval echo /sys/class/net/{eth*,ath*,wlan*[0-9], ... -- DEVICES=$(eval echo /sys/class/net/{enp*,eth*,ath*,wlan*[0-9], ... What kind of network card do you have? I've never heard of enp* outputs of lspci 00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03) Subsystem: Hewlett-Packard Company Device 30e1 Flags: bus master, fast devsel, latency 0, IRQ 42 Memory at 9070 (32-bit, non-prefetchable) [size=128K] Memory at 90727000 (32-bit, non-prefetchable) [size=4K] I/O ports at 20e0 [size=32] Capabilities: access denied Kernel driver in use: e1000e It was named to eth0 when I use udev 196. See http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames We're going to need to figure this out. The init-net-rules.sh may go away completely. I'm just reading this now. If you change the line to: DEVICES=$(eval echo /sys/class/net/en*) does it work for you? It works for me. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] gmp-5.1.0.tar.xz not found at http://ftp.gnu.org/gnu/gmp/gmp-5.1.0.tar.xz
Use this ftp://ftp.gmplib.org/pub/gmp-5.1.0/gmp-5.1.0.tar.xz for now. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] share how to update to glibc-2.17
2012/12/27 Bruce Dubbs bdu...@linuxfromscratch.org: On Wed, Dec 26, 2012 at 7:37 PM, xinglp xin...@gmail.com wrote: 2. And for the udev-lfs the below command: sed -i -e 's/HAVE___SECURE_GETENV/HAVE_SECURE_GETENV/' udev-lfs-196-3/cfg.h If we decide we need this, we'll just make a udev-lfs-196-4 tarball. I sure we need to change HAVE___SECURE_GETENV to HAVE_SECURE_GETENV in udev-lfs-196-3/cfg.h when update to glibc-2.17. see here http://sourceware.org/ml/libc-announce/2012/msg1.html * The new function secure_getenv allows secure access to the environment, returning NULL if running in a SUID/SGID process. This function replaces the internal function __secure_getenv. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] share how to update to glibc-2.17
2012/12/28 Matt Burgess matt...@linuxfromscratch.org: On Fri, 2012-12-28 at 20:27 +0800, xinglp wrote: I sure we need to change HAVE___SECURE_GETENV to HAVE_SECURE_GETENV in udev-lfs-196-3/cfg.h when update to glibc-2.17. It's in the updated udev-lfs-196-4 that I updated in the same commit as Glibc-2.17. Sorry , I just not see it. Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] share how to update to glibc-2.17
1. Just disable the two patches of glibc-2.16. (They are rejected, maybe need update to fit glibc-2.17, I'm not very sure.) 2. And for the udev-lfs the below command: sed -i -e 's/HAVE___SECURE_GETENV/HAVE_SECURE_GETENV/' udev-lfs-196-3/cfg.h -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Udev-196 not create /dev/disk/by-{id, label, uuid, ...}, not bring up eth0.
2012/11/29 Bruce Dubbs bruce.du...@gmail.com Matt Burgess wrote: On Tue, 2012-11-27 at 21:42 -0800, Bryan Kadzban wrote: Hmm, did the Makefile changes for 196 handle the changes where upstream made both blkid and kmod optional? We now need to add a couple new defines if we want that to work right, otherwise IMPORT{builtin}=blkid won't actually do anything, because blkid won't be added to the list of builtins available in the code: http://cgit.freedesktop.org/systemd/systemd/commit/?id=f553b3b1074151200187df916427a1468186435e http://cgit.freedesktop.org/systemd/systemd/commit/?id=e30431623a7d871da123cc37055ac49abf2c20ea Thanks, Bryan. Adding those 2 defines to udev-lfs' cfg.h was enough to bring back by-uuid and by-label. I still don't have by-path but will look into that later. With my change and rebooting, I get: $ ls -l /dev/disk total 0 drwxr-xr-x 2 root root 400 Nov 28 12:46 by-id drwxr-xr-x 2 root root 180 Nov 28 12:46 by-partlabel drwxr-xr-x 2 root root 200 Nov 28 12:46 by-partuuid drwxr-xr-x 2 root root 180 Nov 28 12:46 by-uuid I'll also continue to check about by-path. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page Thanks for your job. But will you also check why the ethernet interface not bring up on boot issue. I met this in vmware system with a vmxnet3 interface. but I can bring it up by execute modprobe vmxnet3. This may also happen in other situation, but not very sure. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] lfs-book r10042 make error
Creating and cleaning /home/username/tmp Processing bootscripts... Validating the book... index.xml:57: element varlistentry: validity error : Element varlistentry content does not follow the DTD, expecting (term+ , listitem), got (term listitem term listitem ) Document index.xml does not validate make: *** [validate] Error 3 -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] 6.30. Procps-3.2.8 sed: -e expression #2, char 14: unterminated `s' command
sed -i -e 's@\*/module.mk@proc/module.mk ps/module.mk@' \ -e 's@^#SKIP/SKIP/' Makefile should be the follow ? sed -i -e 's@\*/module.mk@proc/module.mk ps/module.mk@' \ -e 's@^#SKIP@SKIP@' Makefile -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] lfs xml book can not be maked
The lastest svn version. $ make Creating and cleaning /home/xxx/tmp Processing bootscripts... sed: can't read udev-config/*.rules: No such file or directory make: *** [validate] Error 2 -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] lfs xml book can not be maked
2012/9/1 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: The lastest svn version. $ make Creating and cleaning /home/xxx/tmp Processing bootscripts... sed: can't read udev-config/*.rules: No such file or directory make: *** [validate] Error 2 Right. We were pulling the *.rules from the wrong place. Should be fixed now. $ make Creating and cleaning /home/bdubbs/tmp Processing bootscripts... Validating the book... Validation complete. Generating profiled XML for XHTML... Generating chunked XHTML files... Computing chunks... Copying CSS code and images... Running Tidy and obfuscate.sh... make[1]: Entering directory `/home/bdubbs/LFS/trunk/BOOK' Generating wget list... make[1]: Leaving directory `/home/bdubbs/LFS/trunk/BOOK' But my is Creating and cleaning /home/xinglp/tmp Processing bootscripts... sed: can't read ../udev-lfs/*.rules: No such file or directory make: *** [validate] Error 2 -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] lfs xml book can not be maked
2012/9/1 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: Creating and cleaning /home/xinglp/tmp Processing bootscripts... sed: can't read ../udev-lfs/*.rules: No such file or directory make: *** [validate] Error 2 You need to svn co svn://linuxfromscratch.org/BLFS/trunk/ You mean svn co svn://svn.linuxfromscratch.org/LFS/trunk ? There is a directory parallel to the BOOK directory, udev-lfs. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] lfs-bootscripts-20120831 install error
$ make DESTDIR=/tmp/boot install: cannot stat ‘lfs/sysconfig/rc’: No such file or directory make: *** [files] Error 1 -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] r9963 6.9. Glibc-2.16.0 build error
gcc -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include /sources/glibc-build/config.h rpc_main.c \ -o /sources/glibc-build/sunrpc/cross-rpc_main.o -MMD -MP -MF /sources/glibc-build/sunrpc/cross-rpc_main.o.dt -MT /sources/glibc-build/sunrpc/cross-rpc_main.o -c gcc -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include /sources/glibc-build/config.h rpc_hout.c \ -o /sources/glibc-build/sunrpc/cross-rpc_hout.o -MMD -MP -MF /sources/glibc-build/sunrpc/cross-rpc_hout.o.dt -MT /sources/glibc-build/sunrpc/cross-rpc_hout.o -c gcc -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include /sources/glibc-build/config.h rpc_cout.c \ -o /sources/glibc-build/sunrpc/cross-rpc_cout.o -MMD -MP -MF /sources/glibc-build/sunrpc/cross-rpc_cout.o.dt -MT /sources/glibc-build/sunrpc/cross-rpc_cout.o -c gcc -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include /sources/glibc-build/config.h rpc_parse.c \ -o /sources/glibc-build/sunrpc/cross-rpc_parse.o -MMD -MP -MF /sources/glibc-build/sunrpc/cross-rpc_parse.o.dt -MT /sources/glibc-build/sunrpc/cross-rpc_parse.o -c gcc -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include /sources/glibc-build/config.h rpc_scan.c \ -o /sources/glibc-build/sunrpc/cross-rpc_scan.o -MMD -MP -MF /sources/glibc-build/sunrpc/cross-rpc_scan.o.dt -MT /sources/glibc-build/sunrpc/cross-rpc_scan.o -c gcc -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include /sources/glibc-build/config.h rpc_util.c \ -o /sources/glibc-build/sunrpc/cross-rpc_util.o -MMD -MP -MF /sources/glibc-build/sunrpc/cross-rpc_util.o.dt -MT /sources/glibc-build/sunrpc/cross-rpc_util.o -c gcc -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include /sources/glibc-build/config.h rpc_svcout.c \ -o /sources/glibc-build/sunrpc/cross-rpc_svcout.o -MMD -MP -MF /sources/glibc-build/sunrpc/cross-rpc_svcout.o.dt -MT /sources/glibc-build/sunrpc/cross-rpc_svcout.o -c gcc -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include /sources/glibc-build/config.h rpc_clntout.c \ -o /sources/glibc-build/sunrpc/cross-rpc_clntout.o -MMD -MP -MF /sources/glibc-build/sunrpc/cross-rpc_clntout.o.dt -MT /sources/glibc-build/sunrpc/cross-rpc_clntout.o -c rpc_clntout.c:34:23: fatal error: rpc/types.h: No such file or directory compilation terminated. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] r9963 6.9. Glibc-2.16.0 build error
2012/8/28 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: rpc_clntout.c:34:23: fatal error: rpc/types.h: No such file or directory compilation terminated. What happens if you do this first after changing to glibc-2.16.0: mkdir -p /usr/include/rpc cp -v sunrpc/rpc/*.h /usr/include/rpc Same error. Alternatively sed -i -e 's|rpc/types.h|rpc/types.h|' sunrpc/rpc_clntout.c I'm tring this one -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] make-3.82-upstream_fixes-2.patch not in wget-list
add it to the file patches.ent is not enough but also chapter03/patches.xml -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] 6.61. Udev-188 path error.
make -f udev-lfs-188/Makefile.lfs make -f udev-lfs-188/Makefile.lfs install bash udev-lfs-188/init-net-rules.sh should be make -f udev-lfs/Makefile.lfs make -f udev-lfs/Makefile.lfs install bash udev-lfs/init-net-rules.sh or change the tarball -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] 6.61. Udev-188 path error.
There are also somethings like below in the file Makefile.lfs @cp -v udev-lfs-$(VERSION)/write*$(DESTDIR)/lib/udev -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] 5.17. Coreutils-8.18 cp -v src/su /tools/bin No such file or directory
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Andy Benton
2012/8/1 Bruce Dubbs bruce.du...@gmail.com: With great sadness, I have to report the passing of Andy Benton. I never had the opportunity to meet Andy in person, but after several thousand posts to the lists, I think I knew him. His first post was in March 2004. Since that time he made many, many contributions to LFS and BLFS. Andy was from Prenton in northwest England and educated as an Astrophysicist in Edinburgh. His son tells me that two things made him happy: playing Team Fortress 2 and his work on LFS. Andy was 47 years old. He is survived by his Mother, Father, three sisters, wife Angie, his son Eddie, and daughter Rusti. He will be missed. A lot. -- Bruce So young, very sad to hear that. Thanks him a lot for lfs. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] script ifdown ip addr show ${IFACE} | grep 'inet' notwork.
IFCONFIG=xxx /lib/services/ipv4-static xxx down also not work because of this. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] script ifdown ip addr show ${IFACE} | grep 'inet' not work.
Maybe we should replace ip addr show ${IFACE} with ip -f inet addr show ${IFACE}. The latest 'ip' has somethings changed. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] script ifdown ip addr show ${IFACE} | grep 'inet' notwork.
2012/8/10 Matthew Burgess matt...@linuxfromscratch.org: On Thu, 9 Aug 2012 23:15:32 +0800, xinglp xin...@gmail.com wrote: Maybe we should replace ip addr show ${IFACE} with ip -f inet addr show ${IFACE}. It would help if you explained *why* you think this needs changing. Does the current code not work? If so, how does the bug/issue manifest itself? older version root [ ~ ]# ip --Version ip utility, iproute2-ss120521 root [ ~ ]# ip addr show eth0 2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq state UNKNOWN qlen 1000 link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff inet 192.168.x.x/24 brd 192.168.x.255 scope global eth0 inet6 fe80::xx/64 scope link valid_lft forever preferred_lft forever newer verion root [ ~ ]# ip --Version ip utility, iproute2-ss120801 root [ ~ ]# ip addr show eth0 2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff root [ ~ ]# ip -f inet addr show eth0 2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UP qlen 1000 inet 192.168.x.x/24 brd 192.168.x.255 scope global eth0 So the newer verion of 'ip' did not show the inet 192.168.x.x/24 brd 192.168.x.255 scope global eth0 without option -f inet. The latest 'ip' has somethings changed. Like what? And what changes are relevant to LFS' scripts/instructions/configuration? I didn't see any changelog of iproute2. And there is lots of changes between iproute2-3.4.0/ip and iproute2-3.5.0/ip . Well, it looks like a bug of iproute2-3.5.0 . But where is the upstream of iproute2 to feedback ? Thanks, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] in boot script `/sbin/udevadm info --run` show info: unrecognized option '--run'
udev 186 /etc/init.d/udev_retry line 37 -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] in boot script `/sbin/udevadm info --run` show info: unrecognized option '--run'
2012/7/22 Armin K. kre...@email.com: On 07/22/2012 11:53 AM, xinglp wrote: udev 186 /etc/init.d/udev_retry line 37 Heh, yeah ... That is now hardcoded just as /run. But the older version udev(182) output /run/udev when `udevadm info --run` -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] systemd/udev not work with 'make -f udev-lfs-186/Makefile.lfs -j2'
AR build/udev-local.a LINK build/udevadm LINK build/accelerometer LINK build/ata_id LINK build/cdrom_id gcc: error: build/udev-local.a: No such file or directory make: *** [build/libudev.so.1.0.2] Error 1 make: *** Waiting for unfinished jobs -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] typo in last update
Index: bootscripts/lfs/init.d/mountvirtfs === --- bootscripts/lfs/init.d/mountvirtfs (working copy) +++ bootscripts/lfs/init.d/mountvirtfs (revision 9883) @@ -32,7 +32,10 @@ case ${1} in start) # Make sure /run/var is available before logging any messages - mount -n /run || failed=1 + if ! mountpoint /sys /dev/null; then ### /sys - /run + mount -n /run || failed=1 + fi + mkdir -p /run/var /run/lock /run/shm chmod 1777 /run/shm -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] init script mountvirtfs: Should a mountpoint checking on /run as /proc /sys /dev
2012/6/7 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: When initramfs is used (as in the below URL), /run is aready mounted. Then, if u save somethings under /run before switch_root, u will not see them since /run is over mounted by mountvirtfs. http://www.linuxfromscratch.org/blfs/view/svn/postlfs/initramfs.html What happens if you change mountvirtfs: if ! mountpoint /run /dev/null; then mount -n /run || failed=1 fi It works normal. And I think it is the right way. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] kbd resizecons was still build on 32-bit x86
I just finished the SVN-20120603 lfs build. The resizecons was still there, only the manpage removed. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] kbd resizecons was still build on 32-bit x86
2012/6/5 Ken Moffat zarniwh...@ntlworld.com: On Mon, Jun 04, 2012 at 10:45:54PM +0800, xinglp wrote: I just finished the SVN-20120603 lfs build. The resizecons was still there, only the manpage removed. I stopped building 32-bit x86 a long time ago, so I don't have a build environment to prove the change works. But, a quick test shows the sed appears to do the right thing: ken@jtm1 /scratch/ken/kbd-1.15.3 $cp -a configure{,.orig} ken@jtm1 /scratch/ken/kbd-1.15.3 $sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/' configure ken@jtm1 /scratch/ken/kbd-1.15.3 $diff configure{.orig,} 7201c7201 i?86*) RESIZECONS_PROGS=yes ;; --- i?86*) RESIZECONS_PROGS=no ;; Looking at configure after this, I have case $host_cpu in i?86*) RESIZECONS_PROGS=no ;; *) RESIZECONS_PROGS=no ;; esac if test $RESIZECONS_PROGS = yes; then RESIZECONS_PROGS_TRUE= RESIZECONS_PROGS_FALSE='#' else RESIZECONS_PROGS_TRUE='#' RESIZECONS_PROGS_FALSE= fi So it will treat i?86 the same as any other processor such as x86_64. You already established that x86_64 doesn't have the program, so I guess you did something different from what is in the book. I got it. We need to sed configure.ac instead of configure. configure was regenerated after ./configure ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] resizecons : a proposal
2012/5/18 Ken Moffat zarniwh...@ntlworld.com: On Thu, May 17, 2012 at 01:17:46PM +0800, xinglp wrote: Does the 'setfont' resize the console on the fly as change the vga=xxx of grub do. The behavior of changing console's resolution on the fly is usefull when use a live lfs. As I don't have X installed. No idea - I don't use vga= with grub (although I do use video=1024x768 on a machine with a 1600x1200 LCD and an 8x16 font), so I don't really know how things appear with that grub option. Since it concerns you, on *one* of your ttys pick a different-sized font, e.g. 'setfont LatGrkCyr-12x22' (I assume you are using kbd-1.15.3 : if not, sun12x22 has a similar cell size), look at it, then restore you original font with setfont. Repeat for e.g. default8x9, default8x14, gr928-9x14. That last one is for greek, suggested because the cell should be wider, most fonts 22 pixels high are only 8 pixels wide, although there is prbably a narrower font somewhere. On my machines (all use framebuffers), setfont gives a character size to suit the font. So, if I allow it to use 1600x1200 it fills it all with character cells : 8x16 fonts give 200x75, 12x22 give 133x54 if my maths is right, and limiting it to 1024x768 with an 8x16 font gives 128x48 (and the whole screen is still filled). Does this work for you ? The setfont does change the font size,but it does not work as I change vga=xxx in grub. BTW: I have never successed set resolution other than use vga=xxx # # This is my grub.cfg, it works well for setting resolution set timeout=0 set default=0 insmod vbe menuentry 3.3.6 { set root=(hd0,0) linux /boot/vmlinuz-3.3.6 root=/dev/sda1 vga=0x314 } # # I have tried the below config file, but it does not set resolution set timeout=0 set default=0 insmod video insmod video_fb menuentry 3.3.6 { set root=(hd0,0) linux /boot/vmlinuz-3.3.6 root=/dev/sda1 video=800x600 } # Any idea? ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] resizecons : a proposal
2012/5/18 Ken Moffat zarniwh...@ntlworld.com: On Thu, May 17, 2012 at 02:33:16PM -0700, Qrux wrote: On May 17, 2012, at 12:31 PM, Ken Moffat wrote: Does this work for you ? Was resizecons a part of pre-7.1 LFS? If not...What is the rationale for inclusion at this point? It sounds like a horrific thing. Here's a description I've read: I would hope that you can answer that question from your own build logs, but here's my response: Resizecons has been in kbd since what it pleases me to call time immemorial (technically, that's an English legal phrase, and there is a year associated with, somewhere in the 1400s, I think, which is obviously an exaggeration for computing questions). My oldest remaining logs are from LFS-6.3 - I purged the older ones, and should probably purge some more - where resizecons was built and installed. Note: in those days, LFS was on i?86 only, those of us building on ppc or x86_64 had mostly moved to cross-lfs. After LFS became able to build on x86_64, I soon stopped building for i686 - the restricted registers just seemed so wrong! On *all* of my x86_64 builds, the resizecons program was not installed but its manpage was. Same on ppc/ppc64 (macs, so using framebuffers). But I never noticed until it was queried last week. I discovered that upstream (git) now *does* install resizecons on x86_64 as well as i?86, probably after someone raised a bug at SuSe, but it isn't useful without svgalib - and that was for linux-2.4, although some distros patch it to still build. The resizecons command tries to change the videomode of the console. There are several aspects to this: (a) the kernel must know about it, (b) the hardware must know about it, (c) user programs must know about it, (d) the console font may have to be adapted. So, we have a program that has these complex interactions, and...provides console size/font management? What is the use-case here? The edge case where developers use the console for development? If it's just a case of Oh crap, I borked my network settings and I can't SSH in, or Bummer, I screwed up my X settings, and I can't start X, then I certainly can live for 20 minutes debugging some conf file in vi in a 80x25 window. I'm perfectly happy with the janky BIOS interface (unless newer kernels won't/can't do that anymore). I would hope that is true for everyone building LFS, although modern macs technically use the can of worms called EFI, not a BIOS. I've snipped the rest - on this occasion I agree with your sentiments, but you're answering the wrong question : it was noted that on x86_64 the manpage exists but the program doesn't. From there I determined that we *could* build it on x86_64, but it could not do anything without the obsolete svgalib. My preference is to get rid of it, but there were some alternatives in a mail I sent earlier this evening. Meanwhile, I'm waiting to see if xinglp has a problem - we've had this redundant program for years now, so best to wait a bit to find out if dropping it will expose a problem for someone. In fact, I didn't know about resizecons until days before. Since I found man ifup display dash - into a ■ on local console, I diged into kbd, and found resizecons, I think it maybe usefull. When I use my live lfs I put vga=ask in grub, So, if I can resizecons after boot, it's better :-) , but that's not a easy dream. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] resizecons : a proposal
2012/5/19 Ken Moffat zarniwh...@ntlworld.com: On Fri, May 18, 2012 at 02:39:50PM +0800, xinglp wrote: The setfont does change the font size,but it does not work as I change vga=xxx in grub. Can you be more specific, please ? I don't understand exactly what you mean. Your kernel starts with a particular font size, whichyou have set from grub. When setfont is run, what happens ? I would expect that using a bigger font you would see fewer characters on the screen, or more characters if you use a smaller font. Ennn, my poor English. I have not set any font from grub. When I setfont lat1-08, font become smaller,and I can see more characters on the screen. But it looks like different from when I set the just fit video parameter to grub. Then grub parameter way looks more comfortable. BTW: I have never successed set resolution other than use vga=xxx # # This is my grub.cfg, it works well for setting resolution set timeout=0 set default=0 insmod vbe menuentry 3.3.6 { set root=(hd0,0) linux /boot/vmlinuz-3.3.6 root=/dev/sda1 vga=0x314 } # # I have tried the below config file, but it does not set resolution set timeout=0 set default=0 insmod video insmod video_fb menuentry 3.3.6 { set root=(hd0,0) linux /boot/vmlinuz-3.3.6 root=/dev/sda1 video=800x600 } # Any idea? As it happens, although I use a framebuffer on my server, and it has (I think) some form of radeon chip, I had a lot of fun and games getting it to work - on all my other boxes, the radeon framebuffer 'just worked', but this one was different. In the end, I've got the following in grub.cfg, for 1024x768 with an 8x16 font: set timeout=10 # just a placemarker to show where this goes # attempt to set 1024x768 : this is suficient for vesafb # so forget about trying to use kms setgfxmode=1024x768 setgfxpaylod=keep insmod gfxterm insmod vbe on the kernels, I add vga=792 lke this - linux /vmlinuz-3.0.4-sda5 root=/dev/sda5 vga=792 ro and in my kernel config I have the following for the console # # Console display driver support # CONFIG_VGA_CONSOLE=y # CONFIG_VGACON_SOFT_SCROLLBACK is not set CONFIG_DUMMY_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE=y # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set CONFIG_FONTS=y # CONFIG_FONT_8x8 is not set CONFIG_FONT_8x16=y [...] CONFIG_LOGO=y # CONFIG_LOGO_LINUX_MONO is not set CONFIG_LOGO_LINUX_VGA16=y CONFIG_LOGO_LINUX_CLUT224=y I suggest you try adding the three 'gfx' lines to your grub.cfg and see if they help (800x600 ought to be a valid choice there). BUT, make sure you have a rescue disk in case things go wrong - when changing the overall grub options, it's easy to get things wrong and prevent grub booting. For the kernel options, I hope you don't need them - but they work for me. I just not have the CONFIG_LOGO_and CONFIG_DUMMY_CONSOLE, but the vga=xxx works for my kernel. I've tried your config file, still not work for me. :-( Since I does not speed a lot time on a local console, I'll use the vga=xxx for now. When I'm free I'll go on dig it. Thanks. -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] resizecons : a proposal
2012/5/11 Ken Moffat zarniwh...@ntlworld.com: First, some assertions: 1. resizecons cannot work without video mode files, which are produced by a program from the svgalib package. 2. svgalib is defunct, and was only applicable to linux kernels before 2.6 : there are patches around to enable it to be compiled, and some distros include it, but it seems very much a minority interest. 3. the console will be resized to suit the font when 'setfont' is run. Does the 'setfont' resize the console on the fly as change the vga=xxx of grub do. The behavior of changing console's resolution on the fly is usefull when use a live lfs. As I don't have X installed. 4. if the resulting font appears too tiny, you can pass video= arguments to grub, e.g. I use video=1024x768 on one of my machines which uses kms and a small (8x16) font. Known to work on framebuffers, including kms - I haven't built a non-framebuffer kernel in years. The proposal: If the first 3 assertions are correct, then I suggest that we should remove resizecons, and its manpage, from the build - with some seds (not yet tested), and in explaining the seds use a short summary of assertions 1-3, or even of 1-4. Comments ? ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] problem of bootscript setclock
2012/5/14 Bryan Kadzban br...@kadzban.is-a-geek.net: xinglp wrote: Now, It is the job of udev to start /etc/init.d/setclock . When I use initd-tools to install somethings else, it was installed for depended. Is there a way in these newfangled headers to say that setclock is really an alias for udev? That's what's happening in the scripts, anyway... When I do `install_initd httpd`, it depends on $local_fs, then mountfs , then checkfs then $time. So the $time's provider setclock was installed in rcS.d. Now, I just remove the Required-Start $time from checkfs,ntpd, and add udev to them. Letting udev provide the $time is better way than I what I did. And I THINK , ntpd and checkfs should not depend on $time. Not sure on ntpd (although I wouldn't be surprised if it was because ntpd refuses to do anything if the clock is far-enough off from what it's getting from the upstream servers). But checkfs does depend on the time. It checks whether the current time is before or after the last-full-fsck-time plus the days-between-mounts value stored in the ext3 (and probably 4, and perhaps 2) superblock. If it's after, then it forces a full fsck run. (It also checks whether the mount count stored in the superblock is more or less than the number-of-mounts-between-full-fsck-runs value in the superblock, and forces a full fsck if it's more. Of course, that doesn't depend on knowing the current time.) tune2fs -t will change the number of days between checks, and tune2fs -c will change the number of mounts. tune2fs -T timestamp will set the last-checked time (can be done live), and tune2fs -C integer will set the current mount count (can also be done live). All that said, if there's no way in this extra-abstraction setup to express an alias, then we should change the other scripts to depend on udev instead of setclock. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] problem of bootscript setclock
Now, It is the job of udev to start /etc/init.d/setclock . When I use initd-tools to install somethings else, it was installed for depended. And I THINK , ntpd and checkfs should not depend on $time. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] manpage of ifup is not the manpage format.
2012/4/19 Bruce Dubbs bruce.du...@gmail.com: xinglp wrote: 在 2012年4月11日 下午11:13,Bruce Dubbs bruce.du...@gmail.com 写道: xinglp wrote: There are somethings else in other manpages, I think they are some kinds of format. No, it's ascii, not the more common troff format. That's valid but just does not have things like bold available. Yes, I know it. But on a local console (with en_US.utf8 locale), when use man ifup, it display - to a block, like █ That doesn't make any sense. The dash characters are 0x2d and utf8 is identical to ascii for the first 128 characters. Try setting an environment variable LESSCHARSET=latin1 Sorry for long time not response. I've tried LESSCHARSET=latin1 man ifup, it show some things like below. -- ifup(8) NAME ifup █ 8090 bring a network interface up -- Also the mkdir -v aaa show mkdir: created directory █aaa█, other than mkdir: created directory 'aaa' Everythings is displayed well when through putty, but on a local console it not work well. Then, I tried to figure out this. I note than it show mkdir: created directory ‘aaa’ , but not mkdir: created directory 'aaa' Show them in hex mkdir -v aaa|view - -c '%!xxd' 000: 6d6b 6469 723a 2063 7265 6174 6564 2064 mkdir: created d 010: 6972 6563 746f 7279 20e2 8098 6161 61e2 irectory ...aaa. 020: 8099 0a ... The single quotes is: e2 80 98 e2 80 99 The dash character in /usr/share/man/man8/ifdown.8 is 0x2d , but use man ifup|view - -c '%!xxd' , the dash character is e2 80 90 Then, I think the local console can not display those utf8 character. But I remember in ealier time, my lfs works well of show those character. Now, I fix it by this configure file /etc/sysconfig/console FONT=lat1-16 -m 8859-1 UNICODE=yes -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] resizecons not installed by kbd
As described at http://www.linuxfromscratch.org/lfs/view/development/chapter06/kbd.html But the manpage of resizecons was installed. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] /etc/rc.d/init.d/sysctl 's Required-Start should be mountvirtfs
The mountkernfs has been renamed to mountvirtfs. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] manpage of ifup is not the manpage format.
在 2012年4月11日 下午11:13,Bruce Dubbs bruce.du...@gmail.com 写道: xinglp wrote: There are somethings else in other manpages, I think they are some kinds of format. No, it's ascii, not the more common troff format. That's valid but just does not have things like bold available. Yes, I know it. But on a local console (with en_US.utf8 locale), when use man ifup, it display - to a block, like █ -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] uname -i, -p show 'unknown' after update to coreutils-8.16
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] uname -i, -p show 'unknown' after update to coreutils-8.16
Wrong list just now. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] uname -i, -p show 'unknown' after update to coreutils-8.16
在 2012年4月5日 下午4:34,Matthew Burgess matt...@linuxfromscratch.org 写道: That's because we (LFS) dropped the uname patch from our build instructions because upstream won't take it in its current form. If my understanding is correct, the correct way of implementing this feature is by a combination of changes in the kernel Glibc. I don't have the skill necessary to do that, and by virtue of the fact that these uname patches have been floating around for so many years, nobody with the skill has the inclination to fix this. Is this causing you any issues other than purely cosmetic ones? a few of my bash scripts depend on uname -i or uname -p, I think I'd better change them to use uname -m. Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] uname -i, -p show 'unknown' after update to coreutils-8.16
在 2012年4月5日 下午4:34,Matthew Burgess matt...@linuxfromscratch.org 写道: That's because we (LFS) dropped the uname patch from our build instructions because upstream won't take it in its current form. If my understanding is correct, the correct way of implementing this feature is by a combination of changes in the kernel Glibc. I don't have the skill necessary to do that, and by virtue of the fact that these uname patches have been floating around for so many years, nobody with the skill has the inclination to fix this. Is this causing you any issues other than purely cosmetic ones? a few of my bash scripts depend on uname -i or uname -p, I think I'd better change them to use uname -m. [sorry, forget to cc to bug-coreut...@gnu.org] Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
[lfs-dev] ifdown has an error
http://www.linuxfromscratch.org/lfs/view/development/scripts/apds27.html if [ $(ip addr show ${IFACE} | grep 'inet ') != ]; then log_info_msg Bringing down the ${IFACE} interface... ip link set ${IFACE} down evaluate_retval fi should be if [ $(ip addr show ${IFACE} | grep 'inet ') == ]; then log_info_msg Bringing down the ${IFACE} interface... ip link set ${IFACE} down evaluate_retval fi -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] ifdown has an error
在 2012年3月31日 上午12:05,Bruce Dubbs bruce.du...@gmail.com 写道: xinglp wrote: http://www.linuxfromscratch.org/lfs/view/development/scripts/apds27.html if [ $(ip addr show ${IFACE} | grep 'inet ') != ]; then log_info_msg Bringing down the ${IFACE} interface... ip link set ${IFACE} down evaluate_retval fi should be if [ $(ip addr show ${IFACE} | grep 'inet ') == ]; then log_info_msg Bringing down the ${IFACE} interface... ip link set ${IFACE} down evaluate_retval fi I'm missing something here. Why would we need to set an interface down if the inet line is null? Maybe more than one address have been set to this interface(ipv4-static dhcp pppoe etc...) We've talked about this months before. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] ifdown has an error
I'm missing something here. Why would we need to set an interface down if the inet line is null? try to search Rewrite bootscripts and Chaper 7 in list of lfs-dev@linuxfromscratch.org -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] binutils patch
在 2012年3月28日 下午4:32,Matthew Burgess matt...@linuxfromscratch.org 写道: On Wed, 28 Mar 2012 10:23:57 +0200, Pierre Labastie pierre.labas...@neuf.fr wrote: Hi, The binutils patch in chapter05/binutils-pass{1,2} should be applied before changing directory to binutils-build:-) . Chapter06/binutils is OK. See, that's what I get from breaking from my normal practice of running things through with jhalfs *before* committing :-) I'll fix it up tonight. Thanks again for the report! jhalfs stopped on my box just now, because of this, and I post another thread for it, just ignore that. Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: [lfs-dev] Server outage tonight and tomorrow night
在 2012年3月1日 上午2:45,Gerard Beekmans ger...@linuxfromscratch.org 写道: Hi guys, I completely forgot to send along this notification sooner. My apologies. The LFS server will be powered off tonight around 11:00 PM CST until 4:00 AM CST and again tomorrow during the same window. The data centre we're colocated with is shutting down power to upgrade electrical grids including work on the UPS. The guys on-site will restore power once the work is completed and I'll verify connectivity in the morning. -- Gerard -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page roger -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
man-db need PKG_CONFIG=/tools/bin/true to be built.
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
lfs-bootscripts Makefile fix
diff -Naurz lfs-bootscripts-20111007.orig/Makefile lfs-bootscripts-20111007/Makefile --- lfs-bootscripts-20111007.orig/Makefile +++ lfs-bootscripts-20111007/Makefile @@ -21,7 +21,7 @@ install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rcS.d install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d install -d -m ${DIRMODE} ${EXTDIR}/sysconfig - install -d -m ${DIRMODE} ${EXTDIR}/sysconfig + install -d -m ${DIRMODE} ${LIBDIR} install -d -m ${DIRMODE} ${MAN8} install -d -m ${DIRMODE} ${SBIN} ln -svf services${DESTDIR}/lib/lsb -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Add UNICODE=1 to /lib/lsb/init-functions ?
In SVN-20110904 and before /etc/rc.d/init.d/console is like: # Native English speakers probably don't have /etc/sysconfig/console at all if [ -r /etc/sysconfig/console ]; then . /etc/sysconfig/console else exit 0 fi And now, it is : # See if we need to do anything if [ -z ${KEYMAP} ] [ -z ${KEYMAP_CORRECTIONS} ] [ -z ${FONT} ] [ -z ${LEGACY_CHARSET} ] is_true ${UNICODE}; then exit 0 fi So with a untouched /etc/sysconfig/rc.site, we should set a default value UNICODE=1 to make everything works like before. I met mess when I run ncurses programs with framebuff enabled, which works well before. So I debuged this problem. And I'm using en_US.utf8 as my locale. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Fwd: agetty not show username as I input on a serial term
On Tue, Sep 27, 2011 at 12:40 AM, Bruce Dubbs bruce.du...@gmail.com wrote: See if this works as well: sed -i -e 's/(ECHO)/ECHO/' term-utils/agetty.c It's c_cflag -- c_lflag . Maybe you need to see a oculist -- Bruce xinglp wrote: -- Forwarded message -- From: Karel Zak k...@redhat.com Date: Mon, Sep 26, 2011 at 6:52 PM Subject: Re: agetty not show username as I input on a serial term To: xinglp xin...@gmail.com Cc: util-li...@vger.kernel.org On Fri, Sep 02, 2011 at 02:26:17PM +0800, xinglp wrote: When I login on a serial term, I type username, but nothing appear on the screen, just as input password. [...] It looks like the ECHO bit in termios.c_cflag was not properly set before the get_logname() been called. The code incorrectly checks c_cflag, but the ECHO is c_lflag flag constant. See the patch below. Thanks! Karel From b9261127260ff2a8efbdc6e5f9d00ec7f736b445 Mon Sep 17 00:00:00 2001 From: Karel Zak k...@redhat.com Date: Mon, 26 Sep 2011 12:34:10 +0200 Subject: [PATCH] agetty: test ECHO on c_lflag Reported-by: xinglp xin...@gmail.com Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=739522 Signed-off-by: Karel Zak k...@redhat.com --- term-utils/agetty.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 8398015..75c2b14 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1466,7 +1466,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata case '#': cp-erase = ascval; /* set erase character */ if (bp logname) { - if ((tp-c_cflag (ECHO)) == 0) + if ((tp-c_lflag ECHO) == 0) write_all(1, erase[cp-parity], 3); bp--; } @@ -1475,7 +1475,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata case '@': cp-kill = ascval; /* set kill character */ while (bp logname) { - if ((tp-c_cflag (ECHO)) == 0) + if ((tp-c_lflag ECHO) == 0) write_all(1, erase[cp-parity], 3); bp--; } @@ -1487,7 +1487,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata break; if ((size_t)(bp - logname) = sizeof(logname) - 1) log_err(_(%s: input overrun), op-tty); - if ((tp-c_cflag (ECHO)) == 0) + if ((tp-c_lflag ECHO) == 0) write_all(1, c, 1); /* echo the character */ *bp++ = ascval; /* and store it */ break; -- 1.7.6 -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: Fwd: agetty not show username as I input on a serial term
On Wed, Sep 28, 2011 at 12:26 AM, Bruce Dubbs bruce.du...@gmail.com wrote: xinglp wrote: On Tue, Sep 27, 2011 at 12:40 AM, Bruce Dubbs bruce.du...@gmail.com wrote: See if this works as well: sed -i -e 's/(ECHO)/ECHO/' term-utils/agetty.c It's c_cflag -- c_lflag . Maybe you need to see a oculist I generally don't use a utf-8 character encoding, so your patch looks like the one below. The parens around the ECHO are what stood out for me. By the way, literal tabs in source code suck. Try this sed: sed -i -e 's/cflag \ (ECHO)/lflag \ ECHO/' term-utils/agetty.c -- Bruce  term-utils/agetty.c |   6 +++---  1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 8398015..75c2b14 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1466,7 +1466,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata             case '#':                 cp-erase = ascval; /* set erase character */ :q                 if (bp logname) { -                    if ((tp-c_cflag (ECHO)) == 0) +                    if ((tp-c_lflag ECHO) == 0)                         write_all(1, erase[cp-parity], 3);                     bp--;                 } @@ -1475,7 +1475,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata             case '@':                 cp-kill = ascval;        /* set kill character */                 while (bp logname) { -                    if ((tp-c_cflag (ECHO)) == 0) +                    if ((tp-c_lflag ECHO) == 0)                         write_all(1, erase[cp-parity], 3);                     bp--;                 } @@ -1487,7 +1487,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata                     break;                 if ((size_t)(bp - logname) = sizeof(logname) - 1)                     log_err(_(%s: input overrun), op-tty); -                if ((tp-c_cflag (ECHO)) == 0) +                if ((tp-c_lflag ECHO) == 0)                     write_all(1, c, 1);   /* echo the character */                 *bp++ = ascval;         /* and store it */                 break; -- 1.7.6 -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page shy -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Fwd: agetty not show username as I input on a serial term
-- Forwarded message -- From: Karel Zak k...@redhat.com Date: Mon, Sep 26, 2011 at 6:52 PM Subject: Re: agetty not show username as I input on a serial term To: xinglp xin...@gmail.com Cc: util-li...@vger.kernel.org On Fri, Sep 02, 2011 at 02:26:17PM +0800, xinglp wrote: When I login on a serial term, I type username, but nothing appear on the screen, just as input password. [...] It looks like the ECHO bit in termios.c_cflag was not properly set before the get_logname() been called. The code incorrectly checks c_cflag, but the ECHO is c_lflag flag constant. See the patch below. Thanks! Karel From b9261127260ff2a8efbdc6e5f9d00ec7f736b445 Mon Sep 17 00:00:00 2001 From: Karel Zak k...@redhat.com Date: Mon, 26 Sep 2011 12:34:10 +0200 Subject: [PATCH] agetty: test ECHO on c_lflag Reported-by: xinglp xin...@gmail.com Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=739522 Signed-off-by: Karel Zak k...@redhat.com --- term-utils/agetty.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 8398015..75c2b14 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1466,7 +1466,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata case '#': cp-erase = ascval; /* set erase character */ if (bp logname) { - if ((tp-c_cflag (ECHO)) == 0) + if ((tp-c_lflag ECHO) == 0) write_all(1, erase[cp-parity], 3); bp--; } @@ -1475,7 +1475,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata case '@': cp-kill = ascval; /* set kill character */ while (bp logname) { - if ((tp-c_cflag (ECHO)) == 0) + if ((tp-c_lflag ECHO) == 0) write_all(1, erase[cp-parity], 3); bp--; } @@ -1487,7 +1487,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata break; if ((size_t)(bp - logname) = sizeof(logname) - 1) log_err(_(%s: input overrun), op-tty); - if ((tp-c_cflag (ECHO)) == 0) + if ((tp-c_lflag ECHO) == 0) write_all(1, c, 1); /* echo the character */ *bp++ = ascval; /* and store it */ break; -- 1.7.6 -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
/etc/init.d/modules never load modules ?
/etc/init.d/modules line 38 [ $(egrep -qv '^($|#)' /etc/sysconfig/modules) ] || exit 0 it always does a 'exit 0' -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
Re: /etc/init.d/modules never load modules ?
在 2011年9月26日 上午4:56,Bruce Dubbs bruce.du...@gmail.com 写道: xinglp wrote: /etc/init.d/modules line 38 [ $(egrep -qv '^($|#)' /etc/sysconfig/modules) ] || exit 0 it always does a 'exit 0' Yes, it looks like it should be: [ ! $(egrep -qv '^($|#)' /etc/sysconfig/modules) ] || exit 0 Does that work for you? It does't. I think it should be egrep -qv '^($|#)' /etc/sysconfig/modules || exit 0 -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
/lib/services/init-functions overwrites some variables set by /etc/sysconfig/rc.site
How about move [ -r /etc/sysconfig/rc.site ] . /etc/sysconfig/rc.site to the bottom of /lib/services/init-functions -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page