[lfs-support] systemd behaviour
Hallo dear list, for years I have a small helper in /etc/profile.d to search for an existing ssh-agent instance for my user and set the SSH_* environment variables accordingly if it finds one. If none is running it does the usual eval $(ssh-agent) thing. In the last days I built LFS 10.1 systemd version to compare sysV and systemd styles and educate myself further. When exiting and re-entering I noticed that it asks me - again - for my SSH key credentials and eventually my previous instance of ssh-agent is gone. Is it standard behaviour of systemd to kill all processes since login? My sysV install behaves like expected and ssh-agent stays alive. How would I start ssh-agent so that it will survive logoff? An additional layer of "nohup"? Stay healthy, Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] backscrolling with shift+cursor
Hallo, om some older LFS versions I could flip back 2 or 3 pages of screen content, and this feature seems to have gone with 10.0. Is this some option I missed to turn on which is optional now? I thought this was very convenient. Stay healthy, Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] ssh connect fails at kexinit msg 20 preauth
Hallo dear list, > It was in the development book, but was deleted when updating to > OpenSSH-8.5p1. I'll file an errata for it at my next commit, but here's > what you need to do: looks like I could have simply updated to 8.5 but I wasn't aware that 8.4 wasn't the latest release anymore. The file for patching is no longer there in 8.5. Just updated a test machine to 8.5 and it works. Thanks again for helping. Stay healthy, Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] ssh connect fails at kexinit msg 20 preauth
Hallo Douglas, > if [ "$(uname -m)" != "x86_64" ]; then > l1="#ifdef __NR_pselect6_timeyr" > l2="SC_ALLOW(__NR_pselect6_time64)," > l3="#endif" > sed -e "/^ifdef __NR_read$/ i $l1\n$l2\n$\l3" -i sandbox-seccomp-filter.c > fi apart from the minor typos your suggestion is gold! thanks so much, I was really desperate because I had no idea and I don't follow openssh that closely. Fixed it like this: > l1="#ifdef __NR_pselect6_time64" > sed -e "/^#ifdef __NR_read$/ i $l1\n$l2\n$l3" -i.orig sandbox-seccomp-filter.c Applied the patch, recompiled and it started to work. Finally I noticed the one difference from the other partition on the machine which I use to test my 32 bit stuff: this one still had openssh 8.3 installed, so I could logon there, and only 8.4 ceased to work. At first I suspected something strange had happened to the builtin list of kex protocols. Stay healthy, Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] ssh connect fails at kexinit msg 20 preauth
Hallo dear list, I have successfully compiled LFS 10.1 on my legacy P4 (32 bit) with jhalfs-4212 (svn) on an existing LFS 10.0. Compilation went fine overnight, after installing a kernel it boots fine. Next step was compiling openssh 8.4 to make it headless again (I had exchanged some cables on my KVM switch to watch it boot for the first time). Compilation went fine here as well, sandbox user exists, sshd starts, but connection fails and I have absolutely no clue what goes wrong. sshd_config and host keys are the same files I use on the same system, LFS 10.0 partition. I tried with different users, ssh keys, tried permissions on .ssh, authorized_keys, etc. The last ssh message is "[server ip] closed connection". Using -vvv I see it fails after exchanging msg type 20 preauth kexinit. I started sshd -e -D -d -d -d and the last messages here tell me the exact same thing: kexinit msg type 20 preauth kexinit happens and then the sandbox cleanup kicks in. There is no error message why it fails in this stage. LFS 10.1 uses openssl 1.1.1j which works fine for me on the other system (I recently started to upgrade all my systems to 1.1.1k last week but I'm not sure this would make a difference for my current problem). Usually for ssh problems it boils down to some permissions too wide open but I think I got that covered. I even checked /tmp for 1777 which is my favourite to overlook ;) I'm out of ideas where to look so maybe someone here has some hints for me please? Stay healthy, Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] Boot scripts: request for comments
Hallo, > I'll note though that you are the only one giving feedback and the > scripts have only had minor changes since at least 2011. if you remember we had a discussion some time ago about the sequence of bootscripts for shutdown when unmounting network drives. The old method unconditionally shut down the network and then tried to unmount NFS drives. Stay healthy, Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] how to find out grub boot path
Hallo, > Do I understand correctly that the main question is "which grub.cfg > will be used by grub at next reboot after running grub-install"? Or is > there more? basically yes, but no ;). I want to know where I came from, not where I'm going to. If I use "grub-install" I know the grub.cfg from the current patition is being used at the next reboot. I want to know which grub.cfg was used to get to the currently running instance of my OS. Stay healthy, Thomas -- "Do you wanna be a legend or a footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] how to find out grub boot path
Hallo, >> is it possible to query the "breadcrumb" of a grub boot process? >> Is there a query function that I can use to find out how my system got >> bootstrapped? > Use a single boot partition and install grub to use that. I can understand the rationale and the bigger picture for the recommendation but I'd like to better understand the inner workings of grub. This is the main reason why I asked. I'm doing devops for lots of machines where I can't change the boot layout (big company, policies, governance etc.). Most of them really have 2 partitions (similar to the concept of Android A/B emmc layout). I want to find out the boot process breadcrumb to be sure where things are getting installed to. Stay healthy, Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] how to find out grub boot path
Hallo, is it possible to query the "breadcrumb" of a grub boot process? Say I have multiple partitions, e.g. /dev/sda1, /dev/sda5, /dev/sda6, with different LFS versions. When booting grub chooses grub.cfg from the partition that ran the last grub-install command (e.g. /dev/sda1). But: if I choose manually to boot from e.g. /dev/sda5, it would still have used the grub.cfg from /dev/sda1, and if I wanted to change boot parameters I'd have to edit /dev/sda1 grub.cfg. Is there a query function that I can use to find out how my system got bootstrapped? stay healthy, Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] /tmp permissions resets after reboot
Hallo, > which in my SlackBuild scripts, I am using the /tmp directory to untar > What would be the correct way of untarring in /tmp ? create a subdirectory below /tmp, this will work. Stay healthy, Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] /tmp permissions resets after reboot
Hallo, >> For some reason my /tmp directory keeps resetting to 0755 a typical reason for this problem is unpacking an archive file in /tmp which contains the "." current directory. tar will happily reset the permissions and destroy the 1777 setting. For exactly this reason I try to avoid creating archives with commands like "tar cf file.tar ." and always enumerate specific filenames and directory names. Hunting this down might be fun. A q solution would be to add a S99 startup file which resets directory permissions ;) Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] add fstrim? (was: Re: build time comparison)
Hallo, > fstrim is now a part of LFS package util-linux. > For sysvinit I'm not sure how to do this. thanks for pointing this out. I searched for "fstrim" in the books' ToC only and missed it. For SysV you would use a cron job, imho a weekly one would suffice. My work machine is a RHEL and fstrim was only added recently with the 7 series (I'm on 7.7 right now). When I was running RHEL 6 I booted a live unix from USB and ran fstrim manually. Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] build time comparison
Hallo Ken, >> 9.1 build on SSD: >> The SBU unit value is equal to 117 seconds. >> Total time required to build the system: 79.6 SBU > The SBU in LFS is related to the _host_ system I build LFS on its older version. If it works I build with that LFS to the 2nd partition (I'm using a concept similar to Android's A/B system). It's been a long time since I built LFS on a different host system. Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] build time comparison
Hallo, I did some comparing of build times. Building was done on an older i5-6500 with 16 GB RAM, SATA harddisk and SSD. 9.1 build on SSD: The SBU unit value is equal to 117 seconds. Total time required to build the system:79.6 SBU 8.3 build on HD: The SBU unit value is equal to 107 seconds. Total time required to build the system:205.7 SBU 9.1 build on HD: The SBU unit value is equal to 107 seconds. Total time required to build the system:294.9 SBU I'm not surprised about the speed difference but I wonder why the SBU is bigger for the SSD build? I was using the same jhalfs configuration file for the latest 9.1 build. Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] LFS 9.1 build gcc stage2 fails
Hallo, >> It fails at intl-stage2, calling configure, and the config.log in the >> build-directory tells me that ld cannot find crt1.o. > make a small change of jhalfs to account for that. What is your jhalfs > revision? > It should work Ok with revision 4134. It does now, currently building 040-gcc-pass2, so it went past 035-gcc-pass1 this time. Thanks! Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] LFS 9.1 build gcc stage2 fails
Hallo Pierre, >> It fails at intl-stage2, calling configure, and the config.log in the >> build-directory tells me that ld cannot find crt1.o. > Now, it may be something else. Do you mean it fails during gcc-pass1? If it > fails at some "intl" target, I'd check whether the --disable-nls has been > generated. jhalfs step 035, this is first build of gcc, and stage2-intl is the first approach of using the newly built xgcc (I'm using the naming convention from the targets in the Makefile). After setting up the environment I could configure intl and it compiles. When running make again it then fails at the next make target, gmp. So I assume your hint about using the latest jhalfs from svn might lead to somewhere, I'm trying right now. In an hour I'll know more (this is an old P4 i686 I'm experimenting with). Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] compile 32-bit kernel on a 64-bit LFS?
Hallo, >> Would a 32-bit kernel work if I compile it on a 64-bit machine with the >> 32-bit config taken from the current compile system? > I think you need at least a multilib gcc. I had success! After a bit of experimenting I found the following to work: take the .config from the 32-bit system and copy into the usual place on the compile machine. A multilib gcc is not required. I did not build the LFS for my 64-bit machine with multilib afair and it works. Since you cannot "install" and "modules_install" you need to give temporary install paths for the kernel and the modules. These are 2 distinct environment variables that have to be set. Afterwards you can collect the package and move from the 64-bit system to the 32-bit system. cd /sources/linux-5.3.15 mkdir -p build/{boot,lib} export INSTALL_PATH=/sources/linux-5.3.15/build/boot export INSTALL_MOD_PATH=/sources/linux-5.3.15/build make install modules_install tar -C build -cf ../linux-5.3.15-32.tar boot lib The tar file needs to be unpacked in the root directory of the 32-bit machine, grub.cfg needs a new entry pointing to the kernel and you're done. Failed attempt: use only the compiled kernel and try to keep the previously installed modules (since I had the same kernel version already running on the 32-bit system). Obviously the kernel verifies some compiler version-specific signature and refuses to load kernel modules compiled with a different gcc. So you need to install kernel and modules from the same compile but that should be the usual case. PS: is System.map required for normal operation or is it only required for devs doing some sort of bug tracking? I'm tempted to omit the file. Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] compile 32-bit kernel on a 64-bit LFS?
Hallo, > make i386_defconfig > make menu config (to customize the kernel) would it be sufficient to use the exact .config file from the previous compile on a 32-bit system? Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] compile 32-bit kernel on a 64-bit LFS?
Hallo, I have some servers running with 32-bit LFS (intentionally). Longterm I plan to switch to 64 bit, but not right now. I'm contemplating switching the kernel compile from a 32-bit machine to one of my 64-bit systems to win some time. The 32-bit P4 compile machine takes ~100 minutes for a new kernel while the 64-bit i5 only needs ~25 minutes to build a new kernel. Would a 32-bit kernel work if I compile it on a 64-bit machine with the 32-bit config taken from the current compile system? Do I need some additional parameters or switches to signal that it's kind of a cross-compile for another CPU? Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] kernel compilation requires cpio?
Hallo, I started LFS 9.0 on a fresh partition and it stopped at step 158 (of my jhalfs numbering) where it compiles the kernel ... it nearly finishes but then complains about cpio missing. CC kernel/rseq.o AR kernel/built-in.a GZIPkernel/config_data.gz CC [M] kernel/configs.o CHK kernel/kheaders_data.tar.xz GEN kernel/kheaders_data.tar.xz ./kernel/gen_kheaders.sh: line 61: cpio: command not found make[2]: *** [kernel/Makefile:131: kernel/kheaders_data.tar.xz] Error 127 make[1]: *** [Makefile:1085: kernel] Error 2 I built cpio on the fly and it seems to work now but I cannot remember I needed to build cpio before for the base system (I'm a happy user since LFS 6). I've built cpio afterwards anyway for initramfs and early microcode loading but not for the initial kernel compilation. Is this something new like the requirement for rsync? Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] atheros firmware
Hallo, > I've been trying off and on to get a Qualcom Atheros to work. lspci > shows it as AR9227. It's a plain PCI card. I've come to the > conclusion that there must be a firmware blob for this card. can you boot some other distribution and check dmesg for messages about which files are getting loaded? Tschau...Thomas -- Do you wanna be a legend or a passing footprint on the sands of time? -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] LFS 8.3 GRUB Compilation Errors
Hallo, > For those attempting to install GRUB from the tarball, (I suspect > very few) isn't this the main point of "linux from scratch"? I've *always* built grub from the tarball when building a new LFS system. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] gcc not found, beginning of ch6, LFS-8.3
Hallo, > CC=$LFS_TGT-gcc > I mean really on their own line, w/o the trailing '\' on each line. you could solve that by exporting the variables. only exported variables are visible in sub shells, or variables listed on the same command line in front of the command invoked. "CC=... make" would make the CC variable visible for the make command as would "export CC=... make" Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] some observations about LFS 8.3 + jhalfs
Hallo, I assume those first and last were for packages that aren't in BLFS ? there were also packages from LFS and BLFS which showed that. Imho it's not directly stemming from changes in glibc but in stricter gcc checking, more warnings enabled and less assuming what the programmer wanted to express with his code. My previous daily driver LFS build was 7.7, and I had one test machine with 7.10. Then I started again with LFS 8.0 to get my hands on a gcc 7+ to play around with meltdown, spectre etc. fixes. That's where I noticed gcc had become much stricter in code verification. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] some observations about LFS 8.3 + jhalfs
Hallo, I think we need to add some role='nodump' tags to some entries in openssh. that's a great idea. The BLFS book contains lots of "if you want x then you do y" and jhalfs more or less verbatim copies all the optional stuff as given. May I suggest you mark the "documentation" part of packages separately so that it's possible to filter out the whole doc part if unwanted? Currently I'm running a jhalfs test drive with BLFS and I have to edit a lot of scripts to remove doxygen, texi, dvi, pdf, ps, ... parts. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] some observations about LFS 8.3 + jhalfs
Hallo, In fact, when using jhalfs with BLFS, there is no way out of some scriptlet editing. Rewriting the book+jhalfs so that everything can be automated would be a big task... that's ok for me. I've been through the generated scripts more than one time to fit them to my current needs, tweaking here and there. I still think jhalfs is a great tool and I like the concepts behind it very much. I'm a big fan of Makefiles anyway ;). It's surprising how many packages break with recent gcc releases. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] some observations about LFS 8.3 + jhalfs
Hallo, For the "rm" instructions, I'd suggest not adding -f, because usually, where is that happening? I have no actual example for rm where -f would be necessary, this was just something coming to my mind when I wrote about forcing interactive mode with cp or mv and remove -i switches there. I had 158-kernel hanging forever because it was invoked from make and I could not give an answer to the command. Professionally I'm responsible for automation of install and operations for a company with some blue letters in its name so I tend to be overcautious with scripts that potentially run headless, i.e. from cron, puppet, ansible etc. I hate unexpected stuff like aliased cp/mv commands where -i is forced upon me. Lots of my scripts contain "unalias mv" or "\mv" to be sure of how things are working. As a sidenote: the BLFS install of openssh hangs for the same reason. On a fresh machine where there are no keys yet the make install asks questions and obviously no answer is possible: ... 'INSTALL' -> '/usr/share/doc/openssh-7.7p1/INSTALL' 'LICENCE' -> '/usr/share/doc/openssh-7.7p1/LICENCE' 'OVERVIEW' -> '/usr/share/doc/openssh-7.7p1/OVERVIEW' 'README' -> '/usr/share/doc/openssh-7.7p1/README' 'README.dns' -> '/usr/share/doc/openssh-7.7p1/README.dns' 'README.platform' -> '/usr/share/doc/openssh-7.7p1/README.platform' 'README.privsep' -> '/usr/share/doc/openssh-7.7p1/README.privsep' 'README.tun' -> '/usr/share/doc/openssh-7.7p1/README.tun' Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): < answer expected here Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] some observations about LFS 8.3 + jhalfs
Hallo and a happy new year, On all occasions the makefile stopped after 146-revisedchroot with the sudo the bug. Can you send me the "configuration" file you have used? I'll try to recreate. I started fresh yesterday, and now the Makefile contains CHROOT2. I hope I can remember which options I used previously. Apart from that I'm quite happy with jhalfs. found another one: ncurses from LFS is built without libtinfo, so I can't run BLFS first stage make in /blfs_root - it's bailing out on not being able to load libtinfo.so for mconf. I modified the configure options for ch. 6 ncurses and added --with-termlib=tinfo\ This works and I could invoke make for setting BLFS options. Any idea why I cannot use passwd in the chroot environment? I tried to set the root password before rebooting, and passwd simply does not ask for keyboard input. I worked around this by copying the password line for root from /etc/shadow to /mnt/lfs/etc/shadow. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] some observations about LFS 8.3 + jhalfs
Hallo, I've been entertaining myself by building LFS 8.3 over the weekend. Originally I wanted to measure the difference between an old Samsung SATA drive and a more recent SSD on an i5-6500 with 8 GB RAM but it turned out to be more of an jhalfs adventure ;) I'm using jhalfs from svn, not the 2.4 release which did not work for me in previous tries. On all occasions the makefile stopped after 146-revisedchroot with the sudo usage message. Target 146-revisedchroot OK mk_BOOT You are going to CHROOT into /mnt/lfs lfs a password is required usage: sudo -h | -K | -k | -V It turns out that the CHROOT2 definition is missing from the generated Makefile. After I added that (basically CHROOT1 without /tools) I could continue. Next thing I noticed: if I have a common /boot partition where kernel and config file from a previous build (or from parallel installations) exist the "cp -iv" in 158-kernel effectively sends the machine to an infinite loop. It waits for confirmation to overwrite (-i) but there's no possibility to do that in a headless process. Generally since interactive commands do not go well together with makefile automation I suggest the script template removes -i from cp, mv and similar commands. For the same reason rm should always include -f in automated scripts in case something happens to be readonly. Apart from that I'm quite happy with jhalfs. Thanks and have a happy new year. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] LFS Version 8.3 released, livecd, PXE
Hallo, >>> Just to let know to the list, I have a 8.3 liveCD and PXE build > I generated an ISO, which should be usefull in > case you need to fix your LFS. I would like to learn how to build a LiveCD. I tried with squashfs myself but I could never get it running. Could you elaborate please? Or point to some nice instructions? Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] Terms of Intel's EULA for Spectre patches
Hallo, Am 23/08/18, 19:09 schrieb Paul Rogers: > License Restictions: > "... or (v) publish or provide any Software benchmark or comparison test > results." > Intel has changed the license restrictions according to the Register http://go.theregister.com/feed/www.theregister.co.uk/2018/08/23/intel_microcode_license/ Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] Terms of Intel's EULA for Spectre patches
Hallo, Am 23/08/18, 19:09 schrieb Paul Rogers: > License Restrictions: > "... or (v) publish or provide any Software benchmark or comparison test > results." since Intel publishes benchmarks by themselves about patch influence I guess this is a leftover from an NDA of a closed beta test. German c't magazine has reached out yesterday to Intel to clarify whether this statement is accidental or intentional. Debian currently refuses to ship the patches while other distributions are braver ;) Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] reset video hardware settings
Hallo, >> Is it possible to force-set the video mode after boot? Is this a >> separate package with some CLI or is this not possible at all? > > Depending on the driver you're using, it may be trivial. You can set > it by a kernel boot parameter in the GRUB stanza, e.g. video=1024x768 > or whatever. ok, I think I forgot to mention that I want to avoid rebooting. I'd simply like to have the possibility to set the correct video mode when I activate that particular port on the KVM. The system receives a bunch of video parameters upon boot, but if that port on the KVM is not the active one it is 1024x768 and not the real setting that the monitor reports to the KVM switch. I'd later like to force that exact video mode. The kernel does it somehow and if possible I want to have that functionality on manual request. Tschau...Thomas -- "Do you wanna be a legend or a footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] reset video hardware settings
Hallo, I have a question regarding setting the video mode. During boot the kernel switches to a mode suitable to the monitor capabilities (for my monitor with 1920x1200 this would be 75 rows x 240 cols) if the monitor supports this. Now here's where my problem starts: I use a 4-port KVM switch which delivers a default mode of 1024x768 to the 3 ports not selected. When an LFS system boots non-selected it switches to another video mode and size (48 rows x 128 cols). Is it possible to force-set the video mode after boot? Is this a separate package with some CLI or is this not possible at all? I have tried to follow the steps in the "console" init script but this didn't help me - it sets a font, but not the basic video mode. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] compile 4.17.7 32 bit
Hallo, > Wrong - the patch _was_ the fix for 32-bit. 4.17.8 is out now. good news. 4.17.8 in fact works on my 32 bit machine. I tried out gzip kernel compression instead of xz but that didn't help. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] compile 4.17.7 32 bit
Hallo, I am compiling the current linux kernels for my 32 and 64 bit machines. The latest 4.17.7 does not work for me on 32 bit (intel core2 duo) while it boots fine on the i5 64 bit. I used the same config as for 4.17.6 which compiles and boots fine on the 32 bit CPU. LFS 8.2, gcc 7.3. Anyone else having problems with the latest kernel under some circumstances? Tschau...Thomas -- "Do you wanna be a legend or a footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] expect5.45.4 error Ubuntu 16.04
Hallo, >> carelessness. I wonder if it's host-related. I notice that the first >> complainer was using Mint (an Ubuntu derivative) and the second was >> using Ubuntu itself. I don't know about the third one. But I seem to >> remember from some years back that Ubuntu was not then considered a >> good build host for LFS. I have built LFS with Mint Cinnamon successfully in the past, both i686 and x86_64. For other reasons I've completely switched to Fedora last year and I've also been successful in building LFS on FC 26 and 27 (32 and 64 bit). You have to install some *-devel packages but the book explains that. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] LFS-8.2-rc1
Hallo, are you really using gcc 7.0.0 in the upcoming LFS release? I thought we're heading for gcc 7.3 with retpoline support. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] A speedup with 4.14 and later kernels (against Meltdown)
Hallo, > Thomas, I'm not quite sure what you are asking me to do. I save all > my config files for reference. I've got a 4.14.1 kernel building now, > made with oldconfig using the 4.13.16 config file and defaults for > all new options. What exactly do you want me to do with it when it's > finished? I was suggesting exactly what you did: use the config from 4.13 as a starting point, then compile the 4.14 kernel with that, and check exactly while answering the questions for new features. Don't stick to the defaults, try to understand whether there might be problems with each option. Or simply, do not use 4.14.1 - use some later kernel from 4.14 series. Maybe the early releases of 4.14 had some problems like yours and they got fixed. I'd try with something like .10, right before the Meltdown/Spectre patches. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] A speedup with 4.14 and later kernels (against Meltdown)
Hallo, >> I wonder if that explains the problems I am having with recent >> kernels. I am running on an old machine without PCID (I just >> checked) and I cannot boot anything later than the end of series >> 4.13. The panic occurs in the acpi driver I have some old machines which I reuse as DNS, NAS, Squid etc., with Pentium 4 and Core2 CPUs. I rebuilt LFS-svn-20180128 with success on the Pentium 4 machine and I'll build the kernels with gcc 7.3 on this machine now. The kernels boot fine on the newer Core2 CPUs. What type of CPU is giving you grief? Can you compile the new kernel with "make oldconfig" to query your exact current kernel settings (if the running kernel was compiled to support this)? Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] Problems with su when building LFS
Hallo, > su: must be run from a terminal what are the defaults in your sudo.conf? Have you switched on requiretty? You could selectively (or globally) switch it off. Defaults:timtas !requiretty Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] New lfs build and spectre/retpoline
Hallo, > I built a whole LFS and my normal desktop with 7.3, based on LFS > r11352 (14th January) and BLFS r19700 (25th January). For that it > dropped in and the new version gave me no trouble. for me gcc 7.3 does not seem like a simple drop-in. There were so many changes standard-wise (C and C++) that lots of packages don't compile out-of-the-box. I had to add things like stdint.h, sysmacros.h, and a lot of warnings appear for dirty C code which mixes int/uint, does not use pointers correctly and so on. Imho the latest gcc is a very sharp instrument for detecting bad coding practices and in fact it does this quite often. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] ncurses 6.1
Hallo, I could not compile lynx 2.8.8.rel2 with ncurses 6.1 on LFS svn. Reason: in /usr/include/term.h the lib-internal variable cur_term is shielded from visibility by an #ifdef. I'm not completely sure if term.h is really installed by ncurses because I couldn't find this file in the ncurses tar file. Anyway lynx can be compiled if you add the cpp define NCURSES_INTERNALS either to src/makefile or on the commandline with CFLAGS. Tschau...Thomas -- "Do you wanna be a legend or a footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] binutils-2.20 and grub
Hallo On 02/03/2018 04:42 PM, Bruce Dubbs wrote: configure needs the following switch on 32 bit systems: --enable-64-bit-bfd >>> >>> Thomas, Have you tested you built grub? jhalfs logfile tells me that grub was built, and after grub-install I could boot the machine from the svn LFS partition. So I'd say that grub was built successfully. Tschau...Thomas -- "Do you wanna be a legend or a footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] Full retpoline mitigation on older systems
Hallo, I rebuilt LFS from SVN with kernel 4.15 gcc 7.3 on i686. # head -n7 /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Pentium(R) 4 CPU 3.20GHz stepping: 9 microcode : 0x3 > PTI offers mitigation against Meltdown, retpoline against Spectre v2. Basic LFS compiles fine with book settings, apart from grub where a minimal change was required in the final build of binutils 2.30. I admit I simply hacked the script 082-binutils in lfs-commands to achieve that. configure needs the following switch on 32 bit systems: --enable-64-bit-bfd The build fails if the "target" switch is used (as was suggested here on the list). I then compiled some minimal tools I always like to have - openssl, openssh, libtirpc, lsof, rpcbind, nfs-utils, cpio. I was able to compile that with only some minor patches on the way due to gcc 7.3 abiding to the latest C and C++ standards (things like stdint.h, sysmacros.h etc.). As it is i686 does not contain PTI yet. # uname -rm 4.15.0 i686 # cat /sys/devices/system/cpu/vulnerabilities/* Vulnerable Vulnerable Mitigation: Full generic retpoline Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] compile failure grub i386
Hallo, Am 31/01/18, 17:59 schrieb Pierre Labastie: >>> lib/i386/relocator64.S: Assembler messages: >>> lib/i386/relocator64.S:66: Error: unknown pseudo-op: `.code64' > Hmmm, after reading the documentation, it looks like the following flags > should be added to binutils' configure on a 32-bit machine (see > https://sourceware.org/binutils/docs-2.29/as/i386_002dOptions.html): > --enable-64-bit-bfd > --enable-targets=x86-64 I'll try to rebuild binutils. So far it didn't hurt me because I had a working grub installation from LFS 8.1 but I'd like to find out anyway. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] compile failure grub i386
Hallo, I have a suspicion that grub 2.02 cannot be compiled with gcc 7.3. grub is step 127 in the jhalfs Makefile so I assume gcc is working in general, I'm well into ch. 6 of the LFS-svn book. gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -m32 -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/7.3.0/include -I../include -I../include -DGRUB_FILE=\"lib/i386/relocator64.S\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -D_FILE_OFFSET_BITS=64 -g -m32 -msoft-float -DGRUB_FILE=\"lib/i386/relocator64.S\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -MT lib/i386/relocator_module-relocator64.o -MD -MP -MF lib/i386/.deps-core/relocator_module-relocator64.Tpo -c -o lib/i386/relocator_module-relocator64.o `test -f 'lib/i386/relocator64.S' || echo './'`lib/i386/relocator64.S lib/i386/relocator64.S: Assembler messages: lib/i386/relocator64.S:66: Error: unknown pseudo-op: `.code64' lib/i386/relocator64.S:74: Error: bad register name `%rax' lib/i386/relocator64.S:98: Error: bad register name `%rax' lib/i386/relocator64.S:132: Error: bad register name `%rip)' make[3]: *** [Makefile:28996: lib/i386/relocator_module-relocator64.o] Error 1 make[3]: Leaving directory '/sources/8.x/grub-2.02/grub-core' make[2]: *** [Makefile:23531: all] Error 2 make[2]: Leaving directory '/sources/8.x/grub-2.02/grub-core' make[1]: *** [Makefile:10904: all-recursive] Error 1 make[1]: Leaving directory '/sources/8.x/grub-2.02' make: *** [Makefile:3130: all] Error 2 Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] Meltdown and Spectre
Hallo, I saw a report a little while ago claiming that machines as far back as SandyBridge were also affected, but my SB didn't get newer firmware. intel pulled the 201801 microcode from the download site and is offering now the 201711 archive again. news are that all CPUs with speculative execution or branch prediction are vulnerable. This will then go as far back as Pentium-Pro and Pentium II which date approx. 1995. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] reset console size/mode
Hallo, Am 17/01/18, 17:03 schrieb Bruce Dubbs: > shopt -s checkwinsize this will set bash's internal knowledge about the screen size, but actually I wanted to know if it's possible to repeat setting the screen to the maximum size like the kernel did during startup. I tried commands like setfont but they do not change the physical screen resolution. Your suggestion is helpful but still only a workaround to make the shell aware of the change - I'd like to undo the resolution change caused by the KVM hiccup. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] kernel 4.14.14 compile needs gcc patches?
Hallo, am I right in understanding that for compiling a new kernel with retpoline resiliency I need a patched gcc until this is covered in an official gcc release? Would it be possible to build a concurrent intermediate gcc which does not affect the mainline one by choosing some different env variables? Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] reset console size/mode
Hallo, I'm using a KVM switch at home to connect 4 PCs to one keyboard, mouse and screen. This KVM switch simulates 1024x768 resolution for the machines that are currently not active. Under unclear situations (to me) the LFS machine looses the settings for size and resolution hardware-wise, but still thinks it's got the initial size for display. This means I'm seeing a bigger font that I want to, and the lower part of the screen is off. stty reports "rows 67; columns 237" (24" screen, 1920x1200) but to me it looks more like 132x80. Is there a command to force a reset of the screen without rebooting? I notice the resolution change happens quite early during kernel start but I was hoping there is a command to repeat it later. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] Intel microcode updates adding confusion?
Hallo, > Not all the microcode is to fix Spectre! > > My experience is that intel microcode for older processors does not > get changed, but they copy it into the latest tarball. When I I dowloaded the 2018 microcode package and to my big surprise I found files for old CPUs where there was no microcode update before. 06-17-06 06-0f-0b (two variants of Core2 Duo) Here's a little shell script to create initrd for microcode update early loading like suggested in the BLFS book. It's simply the code from there brushed up by looking up the CPU version. Change if you use AMD instead of intel. You need to add a line to /boot/grub/grub.cfg if it isn't there already. The microcode file needs to be available in /sources. menuentry "4.14.13-lfs-8.1" { set root=(hd0,1) linux /boot/vmlinuz-4.14.13-lfs-8.1 root=/dev/sda1 ro initrd /boot/microcode.img } #!/bin/sh cd /sources mc=$(ls -1rt microcode*| tail -1) test -z "${mc}" && exit 1 cpu=$(awk '/^cpu family.:/{family=$NF} /^model..:/{model=$NF} /^stepping.:/{stepping=$NF} END{printf"%02x-%02x-%02x",family,model,stepping}' /proc/cpuinfo) tar xf "${mc}" intel-ucode/"${cpu}" test -f intel-ucode/"${cpu}" || exit 1 echo "# found intel-ucode/${cpu}" cp intel-ucode/"${cpu}" /lib/firmware/intel-ucode/ mkdir -p /boot/initrd /lib/firmware/intel-ucode cd /boot/initrd mkdir -p kernel/x86/microcode cp -v /lib/firmware/intel-ucode/* kernel/x86/microcode/GenuineIntel.bin find . | cpio -o -H newc > /boot/microcode.img Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] some thoughts on building lfs 8.0 + 8.1
Hallo, during winter vacation I had some fun building LFS again; I wanted to dive into UEFI systems. I installed Fedora 27 on a machine with an old-ish i5-3350, 16 GB RAM and 256 GB SSD. Fedora 27 comes with gcc 7.2, and this combination cannot build LFS 8.0 without changes. This information is obviously outdated because LFS 8.1 is out ;), but FYI here's why: gcc 7.2 is strictly conforming to the new ISO C/C++ standards and comes with some new constraints, both for syntax and semantics of source code. For some integer types you need to include the new , and additionally it will choke on some code that previously was accepted. You cannot compile the LFS 8.0-included gcc 6.3.0, there's a change to ubsan.c required (if you still want to build 8.0 for some reason). src/gcc-6.3.0/gcc/ubsan.c: 1474:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] fix is simple: - || xloc.file == '0' || xloc.file[0] == 'xff' + || xloc.file[0] == '0' || xloc.file[0] == 'xff' Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] (no subject)
Hallo, >>> Could i build lfs system on usb disk?If can what i must write? > I don't see why not. But by default, these drives always have vfat > filesystems on them. You'll have to reformat it in ext4. Once it's > mounted on $LFS, it should behave like any other partition. I was thinking about this same idea some time ago. Imho it's not necessary to format the USB stick with a dedicated Linux filesystem. Most Live Linuxes or install media come formatted with FAT, usually FAT32. I'd love to learn build a squashfs Linux image, maybe together with unionfs to make it writable and persistent. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] Issue on boot for LFS system
Hallo, > Just to confirm, would downloading the free ISO from the website, > burning it to a cd, and running it on my host machine get the job done > (I have never run memtest86 before)? to the best of my knowledge all linux distro CDs contain an option to boot into memtest86. It is a very small binary, and I include it in all of my machines for checking when something goes awry and I have no clue. You might simply copy it to your build machine, include a menu entry and run it from your boot device. menuentry 'Memory test (memtest86+)' { set root=(hd0,1) knetbsd /boot/memtest86+.elf } Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] Issue on boot for LFS system
Hallo, > file so that it referred to it instead of the 4.9 kernel. The grub menu > came up, and then the boot process froze with "Booting GNU/Linux, Linux > 4.11..." on the screen. usually the gcc compile process is a very good RAM test in itself but just to be sure can you boot into memtest86 and have it run some thorough tests for at least overnight or 24 hours? Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] 5.20. Diffutils-3.6 - mysterious sed
Hallo, > I started wondering about the purpose of this line: > sed -i '233,237 s/max)/max \\/' lib/intprops.h it seems that the surrounding #define is 0 in your case so you don't encounter the bad macro definition. The sed introduces a syntax error, too, so it seems noone ever evaluated that. Of course you can't replace the closing parenthesis with a \\ to continue the line. The lines look like this: (the first one is #226 just to better show the context) /* True if __builtin_add_overflow (A, B, P) works when P is null. */ #define _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL (7 <= __GNUC__) You'd encounter the problem only when LFS moves to gcc >= version 7. # echo "__GNUC__" | gcc -I. -E - # 1 "" # 1 "" # 1 "" # 31 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 32 "" 2 # 1 "" 6 #if _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL --> (the following line is # 233) # define _GL_ADD_OVERFLOW(a, b, min, max) __builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0) # define _GL_SUBTRACT_OVERFLOW(a, b, min, max) __builtin_sub_overflow (a, b, (__typeof__ ((a) - (b)) *) 0) # define _GL_MULTIPLY_OVERFLOW(a, b, min, max) __builtin_mul_overflow (a, b, (__typeof__ ((a) * (b)) *) 0) #else > I looked at lib/intprops.h and it didn't seem like there was a syntax error > there. Technically the old version not a syntax error, the macros are defined as "existing" but not with the semantical contents that was intended. I guess the intention was to write something like this # define _GL_ADD_OVERFLOW(a, b, min, max) \\ __builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0) and you'd need both ) and \\ to make it syntactically correct. You can verify the parsed C code without macros, i.e. after all macros have been replaced, when you apply gcc -E to your sourcecode (together with all the switches and -D you'd usually use there). When I use this technique the last line from intprops.h is # 84. /sources/diffutils-3.5/lib # gcc -I. -E xstrtol.c | grep "intprop" # 1 "intprops.h" 1 ... # 84 "intprops.h" 3 4 # 84 "intprops.h" Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] SBU report file from jhalfs wrong filename
Hallo, the automated build finished a moment after midnight and the reported filename is off by one day ... "The report file 8.0-SBU_DU-2017-04-11.report has been created" -rw-r--r-- 1 root root 55047 Apr 12 00:08 8.0-SBU_DU-2017-04-12.report Apart from that the build went fine (minus my configuration error). Thanks! Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] jhalfs pre-check suggestion
Hallo, I fixed the timezone setting and restarted make. To my relief it only restarted at 076 and not from the beginning. It is one sort of dumb error I tend to make, and usually it occurs when the penalty is high, in this case when the make step takes a veeery long time ;) > That could be done, but what would it bring? The host > /usr/share/zoneinfo should not be used, unless one can assert it is > the same as the one in the to-be-built glibc. You are right, it should check against the timezone data in $LFS and not from the host; I just c+p'ed the directory name. > rebuild glibc and run the tests again. that's ok for me, it runs in the background on another PC. The host system is 7.10, and I have setup more partitions to play around with updating LFS systems. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] jhalfs pre-check suggestion
Hallo, I've tried jhalfs in the latest 2.4 version and it works quite nicely for me (used it some years ago to build 6.something). However it failed for me during 076-glibc today because I made a dumb mistake. I entered a bad timezone name which I only later realized would not work because there's no corresponding file in the timezone repository. I used "CET-1" instead of Europe/Berlin (for me in Germany). This is wrong even more because we have DST in effect for 2 weeks now ;) May I suggest to add a sanity check that the desired timezone is a valid name and exists in /usr/share/zoneinfo? Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] should usb-sticks work with base LFS?
Hallo, I have built an LFS 7.10 system (without systemd) and I'm quite happy with it so far, everything works great. Now I wanted to transfer some files so I connected a memory stick but there's no device to mount. I'm unsure about whether I should expect an USB stick to work with base LFS or not. When I connect the memory stick the kernel messages report the USB device and recognize manufacturer etc., but I don't see a corresponding node created in /dev. My kernel is compiled with USB support and DOS/FAT/NTFS filesystems as modules. Admittedly I'm not entirely sure how udev is supposed to work. The rules syntax suggest that the kernel already provides something like "sdb" and the udev rules can work with that. I've grabbed a similar-looking rule from an Ubuntu wiki but it did not work as I hoped. Can someone please give me some hints and pointers what I should do next? Is this a debugging-something problem or an installing-something problem? Thanks ;) Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
[lfs-support] copy include files when kernelupdate?
Hallo, one step of LFS preparation is the copying of linux header files to system include directories. Should this process be repeated after a kernel update? Or only after a major update (e.g. 4.7->4.8->4.9)? Or not at all because it should keep matching the installed gcc? Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?" signature.asc Description: OpenPGP digital signature -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style