2014-02-14 20:12:26 |
Laurent CHARLOIS |
description |
As same as this bug https://bugs.launchpad.net/ubuntu-builder/+bug/1169492 i get an error after building an ISO.
The difference with the previous bug is that i try to build a 13.10 64bits image under a 13.04 64 bits installation.
After trying to understand what is the problem i've found that these two commands fail :
cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz
cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz.efi
The cause is that there more than one file that match the $FSPATH/boot/vmlinuz* expression and so the error message is that $ISOPATH/casper/vmlinuz is not a folder.
So i rewrote these two lines like that.
VMLINUZ_FILE=$(ls $FSPATH/boot/vmlinuz* | grep -v .efi*)
cp -f $VMLINUZ_FILE $ISOPATH/casper/vmlinuz
cp -f $FSPATH/boot/vmlinuz*efi* $ISOPATH/casper/vmlinuz.efi
I will try this workaround and tell you what is the result. |
As same as this bug https://bugs.launchpad.net/ubuntu-builder/+bug/1169492 i get an error after building an ISO.
The difference with the previous bug is that i try to build a 13.10 64bits image under a 13.04 64 bits installation.
After trying to understand what is the problem i've found that these two commands fail :
cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz
cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz.efi
The cause is that there more than one file that match the $FSPATH/boot/vmlinuz* expression and so the error message is that $ISOPATH/casper/vmlinuz is not a folder.
So i rewrote these two lines like that.
VMLINUZ_FILE=$(ls $FSPATH/boot/vmlinuz* | grep -v .efi*)
cp -f $VMLINUZ_FILE $ISOPATH/casper/vmlinuz
cp -f $FSPATH/boot/vmlinuz*efi* $ISOPATH/casper/vmlinuz.efi
I will try this workaround and tell you what is the result.
=== Update
The error is not here anymore, but there is an error related to initrd.lz
This is caused by the presence of different kernel version.
May be old kernel version can be removed before build the image by using this command :
sudo apt-get purge $(dpkg -l | awk '{print $2}' | grep -E "linux-(image|headers)-$(uname -r | cut -d- -f1).*" | grep -v $(uname -r | sed -r -e 's:-[a-z]+.*::'))
This command comes from : http://doc.ubuntu-fr.org/kernel#suppression_des_anciens_noyaux |
|
2014-02-14 20:24:24 |
Laurent CHARLOIS |
description |
As same as this bug https://bugs.launchpad.net/ubuntu-builder/+bug/1169492 i get an error after building an ISO.
The difference with the previous bug is that i try to build a 13.10 64bits image under a 13.04 64 bits installation.
After trying to understand what is the problem i've found that these two commands fail :
cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz
cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz.efi
The cause is that there more than one file that match the $FSPATH/boot/vmlinuz* expression and so the error message is that $ISOPATH/casper/vmlinuz is not a folder.
So i rewrote these two lines like that.
VMLINUZ_FILE=$(ls $FSPATH/boot/vmlinuz* | grep -v .efi*)
cp -f $VMLINUZ_FILE $ISOPATH/casper/vmlinuz
cp -f $FSPATH/boot/vmlinuz*efi* $ISOPATH/casper/vmlinuz.efi
I will try this workaround and tell you what is the result.
=== Update
The error is not here anymore, but there is an error related to initrd.lz
This is caused by the presence of different kernel version.
May be old kernel version can be removed before build the image by using this command :
sudo apt-get purge $(dpkg -l | awk '{print $2}' | grep -E "linux-(image|headers)-$(uname -r | cut -d- -f1).*" | grep -v $(uname -r | sed -r -e 's:-[a-z]+.*::'))
This command comes from : http://doc.ubuntu-fr.org/kernel#suppression_des_anciens_noyaux |
As same as this bug https://bugs.launchpad.net/ubuntu-builder/+bug/1169492 i get an error after building an ISO.
The difference with the previous bug is that i try to build a 13.10 64bits image under a 13.04 64 bits installation.
After trying to understand what is the problem i've found that these two commands fail :
cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz
cp -f $FSPATH/boot/vmlinuz* $ISOPATH/casper/vmlinuz.efi
The cause is that there more than one file that match the $FSPATH/boot/vmlinuz* expression and so the error message is that $ISOPATH/casper/vmlinuz is not a folder.
So i rewrote these two lines like that.
VMLINUZ_FILE=$(ls $FSPATH/boot/vmlinuz* | grep -v .efi*)
cp -f $VMLINUZ_FILE $ISOPATH/casper/vmlinuz
cp -f $FSPATH/boot/vmlinuz*efi* $ISOPATH/casper/vmlinuz.efi
I will try this workaround and tell you what is the result.
=== Update
The error is not here anymore, but there is an error related to initrd.lz
This is caused by the presence of different kernel version.
May be old kernel version can be removed before build the image by using this command :
sudo apt-get purge $(dpkg -l | awk '{print $2}' | grep -E "linux-(image|headers)-$(uname -r | cut -d- -f1).*" | grep -v $(uname -r | sed -r -e 's:-[a-z]+.*::'))
This command comes from : http://doc.ubuntu-fr.org/kernel#suppression_des_anciens_noyaux
===== UPDATE 2 ====
It doesn't work.... :'( |
|