On 10/1/2020 8:29 AM, Scott Andrews via blfs-support wrote:
In a clean install of LFS-9.0 in an overlayfs and no other packages
installed rm -rf /etc/init.d mv /etc/rc.d/init.d /etc rm -rf rc.d
install -vdm 0755
/etc/rc.d/{rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d,rcS.d} list='halt
mountvirtfs localnet udev checkfs mountfs console cleanfs modules
sysklogd swap network reboot sendsignals sysctl udev_retry' for i in
${list};do install_initd ${i};done Traceback (most recent call last):
File "/usr/sbin/install_initd", line 297, in <module> increment = 100
// len(sysinit) ZeroDivisionError: integer division or modulo by zero
If you run for i in ${list};do install_initd ${i};done a second time
then there is no ZeroDivisionError: integer division or modulo by zero
Yeah, I hadn't considered a 0 length there. Probably modify that line
with this...
if len(sysinit) > 0:
increment = 100 // len(sysinit)
else:
increment = 99
This is already done in the numerical runlevel loop. I didn't really
have a completely empty directory as a design goal as they'd never meet
the Required-Stop dependencies without the initial installation, but I
do recall testing this in an earlier version of the scripts.Give me a
day or so to dig into it and I'll see if I can address both issues.
Curiosity, what version of lfs-bootscripts and LSB-Tools are you using?
I know it says 0.7 in the subject, but that error is 30 lines off for 0.7.
--DJ
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page