Hi Joachim!

On Fri, 07 Nov 2008 23:05:59 +0100, Joachim Breitner wrote:
> Am Freitag, den 07.11.2008, 18:46 +0100 schrieb Luca Capello:
>> As I already wrote on that thread [2], the error you get is really
>> strange, since the Debian kernel package you are installing does not
>> contain anymore the /boot/uImage.bin link.
>
> I think dpkg will link an existing file “out of the way” before
> installing the new files (to be able restore them when something goes
> wrong maybe). That’s why it worked after he moved the old uImage.bin out
> of the way. Not sure if it will affect upgrades though.

Bingo, you were right, http://bugs.debian.org/bug=315493:

  On Fri, 15 Jul 2005 22:54:17 +0200, Manoj Srivastava wrote:
  >        kernel-package does not make symbolic links of config-$version;
  >  dpkg does in the unpack phase. So, it is dpkg that does not seem to
  >  support vfat.

  On Sun, 14 Aug 2005 23:46:52 +0200, Scott James Remnant wrote:
  > dpkg doesn't, and won't, support non-POSIX filesystems.

I firstly thought about a workaround: during install/upgrade, if
/boot/uImage.bin and /boot/version exist move them to *.dpkg-bak.
=====
debian-gta02:~# apt-get install linux-image-2.6.24-openmoko-gta02
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  linux-image-2.6.24-openmoko-gta02
[...]
Unpacking linux-image-2.6.24-openmoko-gta02 (from \
 .../linux-image-2.6.24-openmoko-gta02_20080903.git2ea34171-2_armel.deb) ...
dpkg: error processing \
 
/var/cache/apt/archives/linux-image-2.6.24-openmoko-gta02_20080903.git2ea34171-2_armel.deb
 \
 (--unpack):
 unable to make backup link of `./boot/uImage.bin' before installing new \
  version: Operation not permitted
dpkg-deb: subprocess paste killed by signal (Broken pipe)
[...]

debian-gta02:~# ls /boot/
uImage.bin  version

debian-gta02:~# dpkg -i 
linux-image-2.6.24-openmoko-gta02_20080903.git2ea34171-3_armel.deb
[...]
Unpacking linux-image-2.6.24-openmoko-gta02 (from \
 linux-image-2.6.24-openmoko-gta02_20080903.git2ea34171-3_armel.deb) ...
Obsolete file /boot/uImage.bin found, saving as /boot/uImage.bin.dpkg-bak ...
Obsolete file /boot/version found, saving as /boot/version.dpkg-bak ...
Setting up linux-image-2.6.24-openmoko-gta02 (20080903.git2ea34171-3) ...

debian-gta02:~# dpkg -P linux-image-2.6.24-openmoko-gta02
(Reading database ... 13315 files and directories currently installed.)
Removing linux-image-2.6.24-openmoko-gta02 ...

debian-gta02:~#
=====

However, while this solves the problem for the first time you install a
new kernel package version, upgrades still fail:
=====
debian-gta02:~# ls /boot/
uImage.bin.dpkg-bak  version.dpkg-bak

debian-gta02:~# dpkg -i 
linux-image-2.6.24-openmoko-gta02_20080903.git2ea34171-2_armel.deb
[...]
Unpacking linux-image-2.6.24-openmoko-gta02 (from \
 linux-image-2.6.24-openmoko-gta02_20080903.git2ea34171-2_armel.deb) ...
Setting up linux-image-2.6.24-openmoko-gta02 (20080903.git2ea34171-2) ...

debian-gta02:~# ls /boot/
config-2.6.24-20080903.git2ea34171   uImage.bin.dpkg-bak                  
vmlinuz-2.6.24-20080903.git2ea34171
uImage.bin                           version.dpkg-bak

debian-gta02:~# mv /boot/*.dpkg-bak .

debian-gta02:~# dpkg -i 
linux-image-2.6.24-openmoko-gta02_20080903.git2ea34171-3_armel.deb
Preparing to replace linux-image-2.6.24-openmoko-gta02 20080903.git2ea34171-2 \
 (using linux-image-2.6.24-openmoko-gta02_20080903.git2ea34171-3_armel.deb) ...
Obsolete file /boot/uImage.bin found, saving as /boot/uImage.bin.dpkg-bak ...
Unpacking replacement linux-image-2.6.24-openmoko-gta02 ...
dpkg: error processing \
 linux-image-2.6.24-openmoko-gta02_20080903.git2ea34171-3_armel.deb (--install):
 unable to make backup link of `./boot/config-2.6.24-20080903.git2ea34171' \
  before installing new version: Operation not permitted
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 linux-image-2.6.24-openmoko-gta02_20080903.git2ea34171-3_armel.deb
debian-gta02:~#
=====

Considering that dpkg itself does not support non-POSIX filesystems and
that we want to switch to stock Debian kernels sometime in the future, I
propose to officially drop the support for /boot on vfat.

Thx, bye,
Gismo / Luca

Attachment: pgpt2lFzsmpd8.pgp
Description: PGP signature

_______________________________________________
Smartphones-userland mailing list
Smartphones-userland@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to