initramfs-tools discussion - fai package for Ubuntu 8.10 (both server and client)
Adrian Gibanel Lopez
agibanel at alumnes.udl.cat
Wed Jan 14 21:26:08 CET 2009
> diff -urN original/debian/changelog modificado/debian/changelog
> --- original/debian/changelog 2008-10-01 17:02:39.000000000 +0200
> +++ modificado/debian/changelog 2009-01-05 17:56:48.000000000 +0100
> @@ -1,3 +1,9 @@
> +initramfs-tools (0.92bubuntu17) intrepid; urgency=low
> +
> + * Adapt initramfs-tools so that Fully Automatic Installation serves
an Ubuntu 8.10 ok.
Any improvement for my English?
> +
> + -- Adrian Gibanel <adrian.gibanel.lopez at gmail.com> Wed, 03 Jan 2009
01:50:37 +0100
> +
> initramfs-tools (0.92bubuntu15) intrepid; urgency=low
>
> [ Dan Munckton ]
> diff -urN original/init modificado/init
> --- original/init 2008-08-14 00:10:09.000000000 +0200
> +++ modificado/init 2008-12-30 19:16:51.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 -o move /sys
${rootmnt}/sys
> +mount -n --move /proc ${rootmnt}/proc || mount -n -o move /proc
${rootmnt}/proc
This is the eternal problem about -o option (old mount versions) and
--option (new mount versions). As I have already said the elegant solution
might be to modify ubuntu's busybox's mount command which I do not know
how.
>
> # Check init bootarg
> if [ -n "${init}" ] && [ ! -x "${rootmnt}${init}" ]; then
> diff -urN original/scripts/local modificado/scripts/local
> --- original/scripts/local 2008-07-29 08:27:53.000000000 +0200
> +++ modificado/scripts/local 2008-12-30 19:43:57.000000000 +0100
> @@ -152,7 +152,7 @@
> fi
>
> mkdir -p /host
> - mount -o move ${rootmnt} /host
> + mount --move ${rootmnt} /host || mount -o move ${rootmnt} /host
Idem.
>
> while [ ! -e "/host/${LOOP#/}" ]; do
> panic "ALERT! /host/${LOOP#/} does not exist. Dropping to a shell!"
> @@ -183,7 +183,7 @@
> mount ${roflag} -o loop -t ${FSTYPE} ${LOOPFLAGS} "/host/${LOOP#/}"
${rootmnt}
>
> if [ -d ${rootmnt}/host ]; then
> - mount -o move /host ${rootmnt}/host
> + mount --move /host ${rootmnt}/host || mount -o move /host
${rootmnt}/host
Idem.
> fi
> fi
>
--
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