Some doubts about Ubuntu 8.10 server -> Ubuntu 8.10 client.

Adrian Gibanel Lopez agibanel at alumnes.udl.cat
Mon Dec 29 20:33:37 CET 2008


Some doubts about Ubuntu 8.10 server -> Ubuntu 8.10 client.

1) initramfs-tools package modification doubt
2) udev package modification doubt
3) About mount possible workaround
4) About mount modifications needed or not.

1) initramfs-tools package modification doubt
Hi list,


	I have finally managed to make Ubuntu 8.10 server work as a fai server
serving Ubuntu 8.10 clients.
(I will explain it another email when my packages are built ok).

Now I am trying to automate the process by updating the Ubuntu 8.10
packages related to fai but also to initram.
I have seen that I have to modify: live-initramfs and initramfs-tools.

The reason why I have to modify initramfs-tools is because of this patch
(and other ones):

diff -urN initrd_original/init initrd_arreglado5/init
--- initrd_original/init	2008-12-01 15:04:42.000000000 +0100
+++ initrd_arreglado5/init	2008-11-30 10:09:27.000000000 +0100
@@ -197,8 +197,8 @@
 [ "$quiet" != "y" ] && log_end_msg

 # Move virtual filesystems over to the real filesystem
-mount -n -o move /sys ${rootmnt}/sys
-mount -n -o move /proc ${rootmnt}/proc
+mount -n --move /sys ${rootmnt}/sys
+mount -n --move /proc ${rootmnt}/proc

However I suspect (just intuition) that it is better to modify
live-initramfs package only so that
init message is updated with these changes.

Is it my intutition ok? What would you advice me? Thank you very much.

2) udev package package modification doubt
Hi list,


	I have finally managed to make Ubuntu 8.10 server work as a fai server
serving Ubuntu 8.10 clients.
(I will explain it another email when my packages are built ok).

Now I am trying to automate the process by updating the Ubuntu 8.10
packages related to fai but also to initram.
I have seen that I have to modify: udev.

The reason why I have to modify udev is because of this patch (and other
ones):

diff -urN initrd_original/scripts/init-bottom/udev
initrd_arreglado5/scripts/init-bottom/udev
--- initrd_original/scripts/init-bottom/udev	2008-12-01 15:04:42.000000000
+0100
+++ initrd_arreglado5/scripts/init-bottom/udev	2008-11-30
10:09:44.000000000 +0100
@@ -28,4 +28,4 @@
 # to the real filesystem
 mkdir -m 0700 -p /dev/.static/dev
 mount -n -o bind ${rootmnt}/dev /dev/.static/dev
-mount -n -o move /dev ${rootmnt}/dev
+mount -n --move /dev ${rootmnt}/dev

However I suspect (just intuition) that it is better to modify
live-initramfs package only so that
udev file is updated with these changes.

Is it my intutition ok? What would you advice me? Thank you very much.

3) About mount possible workaround
Is there a more elegant solution for these mount --bind or --move
re-syntaxing?

I have thought about writing lines like theses:

mount -n -o move /dev ${rootmnt}/dev |mount -n --move /dev ${rootmnt}/dev

as as a workaround.

4) About mount modifications needed or not.
While debugging the code I have seen that there are some mount commands
that include the modified --bind and --move
that are not run when installing fai. However some other mount commands
are run. Is there any way to know which
mount changes are needed and which ones aren't (apart from debugging)?

Thank you very much.




-- 
Firma Automática 1:
---------------------
Adrian Gibanel Lopez
Estudiante de Ingenieria de Informatica de Sistemas en la Universitat de
LLeida.
Firma Automática 2:
---------------------
Participante en el III Concurso Universitario de Software Libre.
Proyecto: Desdeslin. http://desdeslin.wordpress.com


More information about the linux-fai mailing list