diff options
author | James Thomas <james.thomas@codethink.co.uk> | 2016-01-13 14:09:58 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-02-25 14:10:48 +0000 |
commit | c2795dc49cae7a58c9e2bbfe5d8955999619eaa3 (patch) | |
tree | a2c97db08e74d5f7a6d70163c07f4225cf53bd65 | |
parent | 85716982b15829e19634ed2af65c9231a752ea7b (diff) | |
download | definitions-c2795dc49cae7a58c9e2bbfe5d8955999619eaa3.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
-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: |