Skip to contentSkip to conversation

Revert "kernel: Fix symlinks"

PATCH In review Andreas Oberritter 3 participants 7 messages Apr 21, 2017 – Apr 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "kernel: Fix symlinks"

This reverts commit c7bc46b9bc29dd0953ab8d63b50fa105bb66892e.

It broke dpkg's update-alternatives, which requires absolute paths.

| update-alternatives: error: alternative path is not absolute as it should be

---
 meta/classes/kernel.bbclass             | 6 +++---
 meta/recipes-kernel/linux/linux-dtb.inc | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
meta/classes/kernel.bbclass +3 -3
index 12a748d..8cf357f 100644
@@ -49,11 +49,10 @@ python __anonymous () {
 
     for type in types.split():
         typelower = type.lower()
-        imagedest = d.getVar('KERNEL_IMAGEDEST')
 
         d.appendVar('PACKAGES', ' ' + 'kernel-image-' + typelower)
 
-        d.setVar('FILES_kernel-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}')
+        d.setVar('FILES_kernel-image-' + typelower, '/boot/' + type + '-${KERNEL_VERSION_NAME}')
 
         d.appendVar('RDEPENDS_kernel-image', ' ' + 'kernel-image-' + typelower)
 
@@ -61,8 +60,9 @@ python __anonymous () {
 
         d.setVar('ALLOW_EMPTY_kernel-image-' + typelower, '1')
 
+        imagedest = d.getVar('KERNEL_IMAGEDEST')
         priority = d.getVar('KERNEL_PRIORITY')
-        postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
+        postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
         d.setVar('pkg_postinst_kernel-image-' + typelower, postinst)
 
         postrm = '#!/bin/sh\n' + 'update-alternatives --remove' + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} || true' + '\n'
meta/recipes-kernel/linux/linux-dtb.inc +2 -2
index 22e374f..41aad7c 100644
@@ -63,7 +63,7 @@ pkg_postinst_kernel-devicetree () {
 			DTB_EXT=${DTB##*.}
 			DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
 			DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
-			update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT} ${DTB_BASE_NAME}.${DTB_EXT} devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
+			update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT} ${DTB_BASE_NAME}.${DTB_EXT} /boot/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
 		done
 	done
 }
@@ -76,7 +76,7 @@ pkg_postrm_kernel-devicetree () {
 			DTB_EXT=${DTB##*.}
 			DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
 			DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
-			update-alternatives --remove ${DTB_BASE_NAME}.${DTB_EXT} devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
+			update-alternatives --remove ${DTB_BASE_NAME}.${DTB_EXT} /boot/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
 		done
 	done
 }
Signature · 1 line
2.7.4
#1 lore raw
Quoted 3 lines · Andreas Oberritter

This reverts commit c7bc46b9bc29dd0953ab8d63b50fa105bb66892e.

It broke dpkg's update-alternatives, which requires absolute paths.

This is really uncommon.

I had already expressed my negative opinion about absolute paths for kernel [1]. Personally, I had to patch the bootloader (kexecboot).

So please try some workaround instead of changing it back.

Cheers
Andrea

[1] http://lists.openembedded.org/pipermail/openembedded-core/2014-July/093988.html

Quoted 67 lines

| update-alternatives: error: alternative path is not absolute as it should be

---
 meta/classes/kernel.bbclass             | 6 +++---
 meta/recipes-kernel/linux/linux-dtb.inc | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
meta/classes/kernel.bbclass +3 -3
index 12a748d..8cf357f 100644
@@ -49,11 +49,10 @@ python __anonymous () {
 
     for type in types.split():
         typelower = type.lower()
-        imagedest = d.getVar('KERNEL_IMAGEDEST')
 
         d.appendVar('PACKAGES', ' ' + 'kernel-image-' + typelower)
 
-        d.setVar('FILES_kernel-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}')
+        d.setVar('FILES_kernel-image-' + typelower, '/boot/' + type + '-${KERNEL_VERSION_NAME}')
 
         d.appendVar('RDEPENDS_kernel-image', ' ' + 'kernel-image-' + typelower)
 
@@ -61,8 +60,9 @@ python __anonymous () {
 
         d.setVar('ALLOW_EMPTY_kernel-image-' + typelower, '1')
 
+        imagedest = d.getVar('KERNEL_IMAGEDEST')
         priority = d.getVar('KERNEL_PRIORITY')
-        postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
+        postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
         d.setVar('pkg_postinst_kernel-image-' + typelower, postinst)
 
         postrm = '#!/bin/sh\n' + 'update-alternatives --remove' + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} || true' + '\n'
meta/recipes-kernel/linux/linux-dtb.inc +2 -3
index 22e374f..41aad7c 100644
@@ -63,7 +63,7 @@ pkg_postinst_kernel-devicetree () {
                        DTB_EXT=${DTB##*.}
                        DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
                        DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
-                       update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT} ${DTB_BASE_NAME}.${DTB_EXT} devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
+                       update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT} ${DTB_BASE_NAME}.${DTB_EXT} /boot/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
                done
        done
 }
@@ -76,7 +76,7 @@ pkg_postrm_kernel-devicetree () {
                        DTB_EXT=${DTB##*.}
                        DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
                        DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
-                       update-alternatives --remove ${DTB_BASE_NAME}.${DTB_EXT} devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
+                       update-alternatives --remove ${DTB_BASE_NAME}.${DTB_EXT} /boot/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
                done
        done
 }
--

2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 7 lines · On Fri, 21 Apr 2017 13:02:51 +0200 Andrea Adami <[email protected]> wrote:
Quoted 3 lines · Andreas Oberritter

This reverts commit c7bc46b9bc29dd0953ab8d63b50fa105bb66892e.

It broke dpkg's update-alternatives, which requires absolute paths.

This is really uncommon.

Actually it's not. Try it on any Debian or Ubuntu system.

Quoted 4 lines

I had already expressed my negative opinion about absolute paths for kernel [1]. Personally, I had to patch the bootloader (kexecboot).

So please try some workaround instead of changing it back.

Well, there's no workaround. Other than opkg's update-alternatives, dpkg's maintains an alternatives database in /etc/alternatives, so the symlink is going to point to an absolute path outside of /boot anyway.

To fix your problem, kernel.bbclass should be changed to not use update-alternatives at all. But it's definitely wrong to break the original u-a by using invalid command- line arguments.

Regards,
Andreas

Quoted 72 lines

Cheers
Andrea

[1] http://lists.openembedded.org/pipermail/openembedded-core/2014-July/093988.html

Quoted 67 lines

| update-alternatives: error: alternative path is not absolute as it should be

---
 meta/classes/kernel.bbclass             | 6 +++---
 meta/recipes-kernel/linux/linux-dtb.inc | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
meta/classes/kernel.bbclass +3 -3
index 12a748d..8cf357f 100644
@@ -49,11 +49,10 @@ python __anonymous () {
 
     for type in types.split():
         typelower = type.lower()
-        imagedest = d.getVar('KERNEL_IMAGEDEST')
 
         d.appendVar('PACKAGES', ' ' + 'kernel-image-' + typelower)
 
-        d.setVar('FILES_kernel-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}')
+        d.setVar('FILES_kernel-image-' + typelower, '/boot/' + type + '-${KERNEL_VERSION_NAME}')
 
         d.appendVar('RDEPENDS_kernel-image', ' ' + 'kernel-image-' + typelower)
 
@@ -61,8 +60,9 @@ python __anonymous () {
 
         d.setVar('ALLOW_EMPTY_kernel-image-' + typelower, '1')
 
+        imagedest = d.getVar('KERNEL_IMAGEDEST')
         priority = d.getVar('KERNEL_PRIORITY')
-        postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
+        postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
         d.setVar('pkg_postinst_kernel-image-' + typelower, postinst)
 
         postrm = '#!/bin/sh\n' + 'update-alternatives --remove' + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} || true' + '\n'
meta/recipes-kernel/linux/linux-dtb.inc +2 -3
index 22e374f..41aad7c 100644
@@ -63,7 +63,7 @@ pkg_postinst_kernel-devicetree () {
                        DTB_EXT=${DTB##*.}
                        DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
                        DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
-                       update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT} ${DTB_BASE_NAME}.${DTB_EXT} devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
+                       update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT} ${DTB_BASE_NAME}.${DTB_EXT} /boot/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
                done
        done
 }
@@ -76,7 +76,7 @@ pkg_postrm_kernel-devicetree () {
                        DTB_EXT=${DTB##*.}
                        DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
                        DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
-                       update-alternatives --remove ${DTB_BASE_NAME}.${DTB_EXT} devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
+                       update-alternatives --remove ${DTB_BASE_NAME}.${DTB_EXT} /boot/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
                done
        done
 }
--

2.7.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw

On 2017-04-21 13:30 GMT+02:00 Andreas Oberritter <[email protected]>:

Quoted 5 lines
Quoted 2 lines · On Fri, 21 Apr 2017 13:02:51 +0200 Andrea Adami <[email protected]> wrote:

On Fri, Apr 21, 2017 at 12:39 PM, Andreas Oberritter <[email protected]> wrote:

Quoted 10 lines
Quoted 5 lines
Quoted 3 lines

This reverts commit c7bc46b9bc29dd0953ab8d63b50fa105bb66892e.

It broke dpkg's update-alternatives, which requires absolute paths.

This is really uncommon.

Actually it's not. Try it on any Debian or Ubuntu system.

Quoted 2 lines

I had already expressed my negative opinion about absolute paths for kernel [1]. Personally, I had to patch the bootloader (kexecboot).

Same here, that's why I submitted it in the first place. Didn't thought that would break dpkg...

Quoted 6 lines
Quoted 2 lines

So please try some workaround instead of changing it back.

Well, there's no workaround. Other than opkg's update-alternatives, dpkg's maintains an alternatives database in /etc/alternatives, so the symlink is going to point to an absolute path outside of /boot anyway.

The problem is that, for bootloaders, it is not always possible to mount the rootfs. So, it must only rely on information in the boot partition that can be mounted anywhere.

Quoted 5 lines

To fix your problem, kernel.bbclass should be changed to not use update-alternatives at all. But it's definitely wrong to break the original u-a by using invalid command- line arguments.

And reverting this patch breaks boot for those who rely on a relative symlink ; that is also wrong. Maybe you're right and update-alternatives should be abandoned altogether for managing kernel symlinks.

Quoted 6 lines

Regards,
Andreas

Quoted 2 lines

Cheers
Andrea

David

Quoted 76 lines
Quoted 65 lines

[1] http://lists.openembedded.org/pipermail/openembedded-core/2014-July/093988.html

Quoted 62 lines

| update-alternatives: error: alternative path is not absolute as it should be

---
 meta/classes/kernel.bbclass             | 6 +++---
 meta/recipes-kernel/linux/linux-dtb.inc | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
meta/classes/kernel.bbclass +3 -3
index 12a748d..8cf357f 100644
@@ -49,11 +49,10 @@ python __anonymous () {
 
     for type in types.split():
         typelower = type.lower()
-        imagedest = d.getVar('KERNEL_IMAGEDEST')
 
         d.appendVar('PACKAGES', ' ' + 'kernel-image-' + typelower)
 
-        d.setVar('FILES_kernel-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}')
+        d.setVar('FILES_kernel-image-' + typelower, '/boot/' + type + '-${KERNEL_VERSION_NAME}')
 
         d.appendVar('RDEPENDS_kernel-image', ' ' + 'kernel-image-' + typelower)
 
@@ -61,8 +60,9 @@ python __anonymous () {
 
         d.setVar('ALLOW_EMPTY_kernel-image-' + typelower, '1')
 
+        imagedest = d.getVar('KERNEL_IMAGEDEST')
         priority = d.getVar('KERNEL_PRIORITY')
-        postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
+        postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
         d.setVar('pkg_postinst_kernel-image-' + typelower, postinst)
 
         postrm = '#!/bin/sh\n' + 'update-alternatives --remove' + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} || true' + '\n'
meta/recipes-kernel/linux/linux-dtb.inc +2 -3
index 22e374f..41aad7c 100644
@@ -63,7 +63,7 @@ pkg_postinst_kernel-devicetree () {
                        DTB_EXT=${DTB##*.}
                        DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
                        DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
-                       update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT} ${DTB_BASE_NAME}.${DTB_EXT} devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
+                       update-alternatives --install /${KERNEL_IMAGEDEST}/${DTB_BASE_NAME}.${DTB_EXT} ${DTB_BASE_NAME}.${DTB_EXT} /boot/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
                done
        done
 }
@@ -76,7 +76,7 @@ pkg_postrm_kernel-devicetree () {
                        DTB_EXT=${DTB##*.}
                        DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
                        DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
-                       update-alternatives --remove ${DTB_BASE_NAME}.${DTB_EXT} devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
+                       update-alternatives --remove ${DTB_BASE_NAME}.${DTB_EXT} /boot/devicetree-${DTB_SYMLINK_NAME}.${DTB_EXT} ${KERNEL_PRIORITY} || true
                done
        done
 }
--

2.7.4

Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#4 lore raw
Quoted 23 lines · On Fri, 21 Apr 2017 14:37:36 +0200 David Vincent <[email protected]> wrote:

On 2017-04-21 13:30 GMT+02:00 Andreas Oberritter <[email protected]>:

Quoted 5 lines
Quoted 2 lines · On Fri, 21 Apr 2017 13:02:51 +0200 Andrea Adami <[email protected]> wrote:

On Fri, Apr 21, 2017 at 12:39 PM, Andreas Oberritter <[email protected]> wrote:

Quoted 10 lines
Quoted 5 lines
Quoted 3 lines

This reverts commit c7bc46b9bc29dd0953ab8d63b50fa105bb66892e.

It broke dpkg's update-alternatives, which requires absolute paths.

This is really uncommon.

Actually it's not. Try it on any Debian or Ubuntu system.

Quoted 2 lines

I had already expressed my negative opinion about absolute paths for kernel [1]. Personally, I had to patch the bootloader (kexecboot).

Same here, that's why I submitted it in the first place. Didn't thought that would break dpkg...

Quoted 3 lines
Quoted 2 lines

So please try some workaround instead of changing it back.

Quoted 7 lines
Quoted 3 lines

Well, there's no workaround. Other than opkg's update-alternatives, dpkg's maintains an alternatives database in /etc/alternatives, so the symlink is going to point to an absolute path outside of /boot anyway.

The problem is that, for bootloaders, it is not always possible to mount the rootfs. So, it must only rely on information in the boot partition that can be mounted anywhere.

I understand the problem the patch tried to address.

Those bootloaders don't find the kernel by chance. The name of the image is usually set in the environment. You can update the environment in postinst- scripts or just change the name of the kernel image to match the bootloader's expectations, just to name some alternatives.

Quoted 8 lines
Quoted 5 lines

To fix your problem, kernel.bbclass should be changed to not use update-alternatives at all. But it's definitely wrong to break the original u-a by using invalid command- line arguments.

And reverting this patch breaks boot for those who rely on a relative symlink ; that is also wrong.

Yes. However, I'd argue that a regression is worse than a problem that persisted for years.

Regards,
Andreas

#5 lore raw
Quoted 11 lines · Andreas Oberritter
Quoted 8 lines · On Fri, 21 Apr 2017 14:37:36 +0200 David Vincent <[email protected]> wrote:

On 2017-04-21 13:30 GMT+02:00 Andreas Oberritter <[email protected]>:

Quoted 7 lines
Quoted 4 lines · On Fri, 21 Apr 2017 13:02:51 +0200 Andrea Adami <[email protected]> wrote:
Quoted 2 lines · Andreas Oberritter

This reverts commit c7bc46b9bc29dd0953ab8d63b50fa105bb66892e.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line

It broke dpkg's update-alternatives, which requires absolute paths.

This is really uncommon.

Actually it's not. Try it on any Debian or Ubuntu system.

Quoted 1 line

I had already expressed my negative opinion about absolute paths for

kernel [1].

Quoted 9 lines
Quoted 9 lines
Quoted 1 line
Quoted 1 line

Personally, I had to patch the bootloader (kexecboot).

Same here, that's why I submitted it in the first place. Didn't thought that would break dpkg...

Quoted 4 lines
Quoted 2 lines

So please try some workaround instead of changing it back.

Well, there's no workaround. Other than opkg's update-alternatives,

dpkg's maintains

Quoted 1 line
Quoted 1 line
Quoted 1 line

an alternatives database in /etc/alternatives, so the symlink is going

to point to

Quoted 10 lines
Quoted 5 lines
Quoted 1 line

an absolute path outside of /boot anyway.

The problem is that, for bootloaders, it is not always possible to mount the rootfs. So, it must only rely on information in the boot partition that can be mounted anywhere.

I understand the problem the patch tried to address.

Those bootloaders don't find the kernel by chance. The name of the image is usually set in the environment. You can update the environment in

postinst-

Quoted 1 line

scripts or just change the name of the kernel image to match the

bootloader's

Quoted 4 lines

expectations, just to name some alternatives.

Quoted 2 lines
Quoted 2 lines

To fix your problem, kernel.bbclass should be changed to not use

update-alternatives

Quoted 1 line
Quoted 1 line
Quoted 1 line

at all. But it's definitely wrong to break the original u-a by using

invalid command-

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

line arguments.

And reverting this patch breaks boot for those who rely on a relative symlink ; that is also wrong.

Yes. However, I'd argue that a regression is worse than a problem that persisted for years.

We lived for years with the relative symlink.

Then 78ee4d8 broke the bootloaders in 2014
Finally it was reverted end 2016 and now it is under review again...ouch

What broke what?

My point is, while I had the sources and could modify and reflash the bootloader, the same is not valid for many people.

Anyway, I have found out that there was a workaround to allow boot from NFS:

+ROOTFS_POSTPROCESS_COMMAND += "make_zimage_symlink_relative;"

Cheers
Andrea

#6 lore raw
Quoted 6 lines · On samedi 22 avril 2017 00:04:34 CEST Andrea Adami wrote:

We lived for years with the relative symlink.

Then 78ee4d8 broke the bootloaders in 2014
Finally it was reverted end 2016 and now it is under review again...ouch

Quoted 8 lines

What broke what?

My point is, while I had the sources and could modify and reflash the bootloader, the same is not valid for many people.

Anyway, I have found out that there was a workaround to allow boot from NFS:

+ROOTFS_POSTPROCESS_COMMAND += "make_zimage_symlink_relative;"

This works at image level, it is not package upgrade safe. IMHO, the symlinks must be relative (like every other distro) and therefore should not be maintained with update-alternatives (postinstall task should use plain 'ln')

Quoted 3 lines

Cheers
Andrea

David