bootcd with udev

[email protected] Thu, 12 Oct 2006 18:46:07 +0100
Newsgroups gmane.linux.debian.user.bootcd
Message-ID <OF6FC49C15.3D235794-ON80257205.005D42CA-80257205.00619E60@semtech.com>
This is a multipart message in MIME format.
--===============1097037854==
Content-Type: multipart/alternative;
	boundary="=_alternative 00619E4A80257205_="

This is a multipart message in MIME format.
--=_alternative 00619E4A80257205_=
Content-Type: text/plain; charset="US-ASCII"

Hi,

        I am trying to build a bootcd  with Kernel 2.6.17.

After a minimal install the system was patched to the latest. I then 
installed bootcd and bootcd-mkinitrd. When bootcdwrite is performed I get 
a lot of "did shrink" errors for the /sys filesystem.

--- Creating CD-Image ---
Size of boot image is 4 sectors -> No emulation
mkisofs: File 
'/sys/devices/pci0000:00/0000:00:10.0/host0/target0:0:0/0:0:0:0/power/state' 
did shrink.
exit=255
--- OUTPUT from <mkisofs -graft-points -R -b isolinux/isolinux.bin -c 
isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o 
/var/spool/bootcd/cdimage -x /proc -x /var/spool/bootcd -x 
/var/log/bootcdwrite.log -x /etc -x /var -x /tmp -x /dev -x /home -x /root 
-x /etc/mtab -x /etc/cron.daily/find -x /etc/cron.daily/standard -x 
/etc/fstab -x /etc/ssh/ssh_host_rsa_key -x /etc/ssh/ssh_host_dsa_key -x 
/etc/ssh/ssh_host_rsa_key.pub -x /etc/ssh/ssh_host_dsa_key.pub -x 
/usr/share/bootcd/bootcd-run.lib /=/ /=/var/spool/bootcd/changes 
/home.ro/=/home /root.ro/=/root /var.ro/=/var /etc.ro/=/etc /dev.ro/=/dev> 
---
mkisofs: File 
'/sys/devices/pci0000:00/0000:00:10.0/host0/target0:0:0/0:0:0:0/power/state' 
did shrink.
exit=255

 An image of 16Mb is then created and is junk.

I realised if you mount the /dev/sda1 on /mnt/tmp and change the 
bootcdwrite.conf then the whole process completes without issue (>?) and I 
get an image that looks a better size. During the build you get these 
warnings:

mkisofs: Warning: Directory loop (/mnt/tmp/var/spool/bootcd/changes/proc 
dev: 801 ino: 265749).
mkisofs: Warning: Directory loop (/mnt/tmp/var/spool/bootcd/changes/sys 
dev: 801ino: 265750).
mkisofs: Warning: Directory loop (/mnt/tmp/var/spool/bootcd/changes/ram1 
dev: 801 ino: 265751).
mkisofs: Warning: Directory loop (/mnt/tmp/var/spool/bootcd/changes/ram2 
dev: 801 ino: 265752).
mkisofs: Warning: Directory loop (/mnt/tmp/var/spool/bootcd/changes/tmp.ro 
dev:801 ino: 265765).
mkisofs: Warning: Directory loop (/mnt/tmp/var/spool/bootcd/changes/etc.ro 
dev:801 ino: 265766).
mkisofs: Warning: Directory loop 
(/mnt/tmp/var/spool/bootcd/changes/etc.ro/rcS.ddev: 801 ino: 265865).
mkisofs: Warning: Directory loop 
(/mnt/tmp/var/spool/bootcd/changes/etc.ro/bootcd dev: 801 ino: 265870).
mkisofs: Warning: Directory loop 
(/mnt/tmp/var/spool/bootcd/changes/etc.ro/cron.daily dev: 801 ino: 
265878).
mkisofs: Warning: Directory loop 
(/mnt/tmp/var/spool/bootcd/changes/etc.ro/ssh dev: 801 ino: 265885).
mkisofs: Warning: Directory loop (/mnt/tmp/var/spool/bootcd/changes/dev.ro 
dev:801 ino: 265767).
mkisofs: Warning: Directory loop (/mnt/tmp/var/spool/bootcd/changes/usr 
dev: 801ino: 265868).
mkisofs: Warning: Directory loop 
(/mnt/tmp/var/spool/bootcd/changes/usr/bin dev:801 ino: 265869).
mkisofs: Warning: Directory loop 
(/mnt/tmp/var/spool/bootcd/changes/usr/share dev: 801 ino: 265871).
mkisofs: Warning: Directory loop 
(/mnt/tmp/var/spool/bootcd/changes/usr/share/bootcd dev: 801 ino: 265872).
mkisofs: Warning: Directory loop 
(/mnt/tmp/var/spool/bootcd/changes/isolinux dev: 801 ino: 265890).

The bootcdmkinitrd process appears to go without problem, and I think it's 
going to work, however...

During the boot process, the first errors I see are devfs errors. They are 
followed by problems finding files, then terminating with no console 
access and "INIT: ID "?" respawning too fast: disabled for 5 minutes" for 
each runlevel.


mount: Mounting devfs on devfs failed: No such device
umount: Couldn't umount /devfs: Invalid argument

running /scripts/bootcd
find: /usr/lib: No such file or directory

FATAL: Module <lots> not found

Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...input: PC Speaker as 
/class/input/input1

INIT: ID "?" respawning too fast: disabled for 5 minutes

As far as I am aware there is no longer any support for devfs, it has been 
replaced by udev. The DEVFS option in the bootcdwrite.conf file is off and 
complains if you set it on.

Any help, advice, or failing that sympathy in this would be greatly 
appreciated.

John Adamson





--=_alternative 00619E4A80257205_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; I
am trying to build a bootcd &nbsp;with Kernel 2.6.17.</font>
<br>
<br><font size=2 face="sans-serif">After a minimal install the system was
patched to the latest. I then installed bootcd and bootcd-mkinitrd. When
bootcdwrite is performed I get a lot of &quot;did shrink&quot; errors for
the /sys filesystem.</font>
<br>
<br><font size=2 face="sans-serif"><i>--- Creating CD-Image ---</i></font>
<br><font size=2 face="sans-serif"><i>Size of boot image is 4 sectors -&gt;
No emulation</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: File '/sys/devices/pci0000:00/0000:00:10.0/host0/target0:0:0/0:0:0:0/power/state'
did shrink.</i></font>
<br><font size=2 face="sans-serif"><i>exit=255</i></font>
<br><font size=2 face="sans-serif"><i>--- OUTPUT from &lt;mkisofs -graft-points
-R -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size
4 -boot-info-table -o /var/spool/bootcd/cdimage -x /proc -x /var/spool/bootcd
-x /var/log/bootcdwrite.log -x /etc -x /var -x /tmp -x /dev -x /home -x
/root -x /etc/mtab -x /etc/cron.daily/find -x /etc/cron.daily/standard
-x /etc/fstab -x /etc/ssh/ssh_host_rsa_key -x /etc/ssh/ssh_host_dsa_key
-x /etc/ssh/ssh_host_rsa_key.pub -x /etc/ssh/ssh_host_dsa_key.pub -x /usr/share/bootcd/bootcd-run.lib
/=/ /=/var/spool/bootcd/changes /home.ro/=/home /root.ro/=/root /var.ro/=/var
/etc.ro/=/etc /dev.ro/=/dev&gt; ---</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: File '/sys/devices/pci0000:00/0000:00:10.0/host0/target0:0:0/0:0:0:0/power/state'
did shrink.</i></font>
<br><font size=2 face="sans-serif"><i>exit=255</i></font>
<br>
<br><font size=2 face="sans-serif">&nbsp;An image of 16Mb is then created
and is junk.</font>
<br>
<br><font size=2 face="sans-serif">I realised if you mount the /dev/sda1
on /mnt/tmp and change the bootcdwrite.conf then the whole process completes
without issue (&gt;?) and I get an image that looks a better size. During
the build you get these warnings:</font>
<br>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/proc dev: 801 ino: 265749).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/sys dev: 801ino: 265750).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/ram1 dev: 801 ino: 265751).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/ram2 dev: 801 ino: 265752).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/tmp.ro dev:801 ino: 265765).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/etc.ro dev:801 ino: 265766).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/etc.ro/rcS.ddev: 801 ino: 265865).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/etc.ro/bootcd dev: 801 ino: 265870).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/etc.ro/cron.daily dev: 801 ino: 265878).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/etc.ro/ssh dev: 801 ino: 265885).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/dev.ro dev:801 ino: 265767).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/usr dev: 801ino: 265868).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/usr/bin dev:801 ino: 265869).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/usr/share dev: 801 ino: 265871).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/usr/share/bootcd dev: 801 ino: 265872).</i></font>
<br><font size=2 face="sans-serif"><i>mkisofs: Warning: Directory loop
(/mnt/tmp/var/spool/bootcd/changes/isolinux dev: 801 ino: 265890).</i></font>
<br>
<br><font size=2 face="sans-serif">The bootcdmkinitrd process appears to
go without problem, and I think it's going to work, however...</font>
<br>
<br><font size=2 face="sans-serif">During the boot process, the first errors
I see are devfs errors. They are followed by problems finding files, then
terminating with no console access and &quot;INIT: ID &quot;?&quot; respawning
too fast: disabled for 5 minutes&quot; for each runlevel.</font>
<br>
<br>
<br><font size=2 face="sans-serif"><i>mount: Mounting devfs on devfs failed:
No such device</i></font>
<br><font size=2 face="sans-serif"><i>umount: Couldn't umount /devfs: Invalid
argument</i></font>
<br>
<br><font size=2 face="sans-serif"><i>running /scripts/bootcd</i></font>
<br><font size=2 face="sans-serif"><i>find: /usr/lib: No such file or directory</i></font>
<br>
<br><font size=2 face="sans-serif"><i>FATAL: Module &lt;lots&gt; not found</i></font>
<br>
<br><font size=2 face="sans-serif"><i>Starting the hotplug events dispatcher:
udevd.</i></font>
<br><font size=2 face="sans-serif"><i>Synthesizing the initial hotplug
events...done.</i></font>
<br><font size=2 face="sans-serif"><i>Waiting for /dev to be fully populated...input:
PC Speaker as /class/input/input1</i></font>
<br>
<br><font size=2 face="sans-serif"><i>INIT: ID &quot;?&quot; respawning
too fast: disabled for 5 minutes</i></font>
<br>
<br><font size=2 face="sans-serif">As far as I am aware there is no longer
any support for devfs, it has been replaced by udev. The DEVFS option in
the bootcdwrite.conf file is off and complains if you set it on.</font>
<br>
<br><font size=2 face="sans-serif">Any help, advice, or failing that sympathy
in this would be greatly appreciated.</font>
<br><font size=2 face="sans-serif"><br>
John Adamson<br>
</font>
<br>
<br>
<br>
<br>
--=_alternative 00619E4A80257205_=--


--===============1097037854==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Bootcd-user mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bootcd-user

--===============1097037854==--