From f53cb2d01d5c762363c59a233005cdfbd115e656 Mon Sep 17 00:00:00 2001 From: James Thomas Date: Wed, 13 Jan 2016 14:09:58 +0000 Subject: Move extlinux.conf to /extlinux/ U-boot's sysboot command generally looks for the config in /extlinux rather than /, so move it there and create a symlink to maintain comptability with syslinux Change-Id: I19173e284993f364cc8892ba44b8f5d7bc394ec3 --- extensions/writeexts.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/extensions/writeexts.py b/extensions/writeexts.py index a135eadb..647f3742 100644 --- a/extensions/writeexts.py +++ b/extensions/writeexts.py @@ -754,7 +754,15 @@ class WriteExtension(Extension): ''' self.status(msg='Creating extlinux.conf') - config = os.path.join(real_root, 'extlinux.conf') + # To be compatible with u-boot, create the extlinux.conf file in + # /extlinux/ rather than / + # Syslinux, however, requires this to be in /, so create a symlink + # as well + config_path = os.path.join(real_root, 'extlinux') + os.makedirs(config_path) + config = os.path.join(config_path, 'extlinux.conf') + os.symlink('extlinux/extlinux.conf', os.path.join(real_root, + 'extlinux.conf')) ''' Please also update the documentation in the following files if you change these default kernel args: -- cgit v1.2.1