]> xenbits.xensource.com Git - osstest.git/commitdiff
Debian: Create /boot/boot -> . symlink on ARM when PvMenuLst enabled
authorIan Campbell <ian.campbell@citrix.com>
Thu, 13 Aug 2015 16:52:41 +0000 (17:52 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 4 Sep 2015 11:09:48 +0000 (12:09 +0100)
This is under the same conditional as the nobootloader confirmation
one, since they effectively both stem from the lack of a boot loader
and the consequential use of the pv-grub-menu package.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Debian.pm

index 7fc39d573c0dc1e56b38afef478a9d21107102eb..9f8f60b62f7e745fc88cbf37789cec2e576a8ddb 100644 (file)
@@ -926,7 +926,15 @@ END
        # that as a "bootloader".
        $preseed_file.= (<<END);
 d-i     nobootloader/confirmation_common boolean true
+END
 
+        # Debian Bug #771949 means that update-menu-list always
+        # generates a full absolute path to the kernel + initrd, while
+        # by default the partition layout on ARM has a separate /boot.
+        preseed_hook_command($ho, 'late_command', $sfx, <<END);
+#!/bin/sh
+set -ex
+ln -s . /target/boot/boot
 END
     }