reopen 687848
thanks

Hi,

Looking at the code and especially the rm -rf you are referring to, I
see that only the symlink is removed:
Layout before:
/boot/extlinux/themes/debian -> debian-wheezy
/boot/extlinux/themes/debian-wheezy: the old theme
the extlinux configuration has the standard values, namely:
/etc/default/extlinux: EXTLINUX_THEME="debian".

So the rm -rf "${_EXTLINUX_DIRECTORY}/themes/${EXTLINUX_THEME}"
deletes /boot/extlinux/themes/debian, which is only the symlink. Then
EXTLINUX_THEME_ORIG is populated and the subsequent cp -al (and
regeneration of the symlink) leads to this layout:
/boot/extlinux/themes/debian -> debian-wheezy
/boot/extlinux/themes/debian-wheezy: the old theme
/boot/extlinux/themes/debian-wheezy/extlinux: the new theme.

Of course, only the old theme is found when booting, leading to no boot
at all.

Steps to reproduce:
1. Fresh wheezy install
2. apt-get install extlinux
3. extlinux-update && extlinux-install <first-hd>
(4. try reboot: doesn't boot; redo 1.-3. to get working setup again)
5. add unstable to sources.list and apt-get -t unstable install
syslinux-themes-debian-wheezy or just download the most recent
syslinux-themes-debian-wheezy_*.deb from an unstable mirror of your
choice and dpkg -i it
6. extlinux-update
7. try reboot: doesn't boot.

Note this is completely standard behaviour for anyone actually
installing extlinux in a wheezy right now and following the
README.Debian, finding it doesn't work, switching back to grub, waiting
for the fixes in syslinux-themes-debian hitting testing or installing
it from unstable, and trying again.

I don't know if my proposed patch is a very elegant solution (I
actually suspect it's not), but I tested that it solves the problem.


Cheers,

Mika


-- 
Own your own computer. Don't use Windows 7. <http://windows7sins.org>

Attachment: signature.asc
Description: PGP signature

Reply via email to