diff options
author | James Thomas <james.thomas@codethink.co.uk> | 2016-01-13 14:09:58 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2016-02-25 17:41:31 +0000 |
commit | f53cb2d01d5c762363c59a233005cdfbd115e656 (patch) | |
tree | b1c85a1eb8b717c5cab188a9cba9c507a6da87e5 /extensions/writeexts.py | |
parent | e93dd2b3531fff213a76063b3855ac6b8f773b61 (diff) | |
download | definitions-f53cb2d01d5c762363c59a233005cdfbd115e656.tar.gz |
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
Diffstat (limited to 'extensions/writeexts.py')
-rw-r--r-- | extensions/writeexts.py | 10 |
1 files changed, 9 insertions, 1 deletions
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: |