Commit Graph

17 Commits

Author SHA1 Message Date
Thorsten Kukuk
cf11dac326 Replace tabs with spaces 2016-11-15 15:31:38 +01:00
Thorsten Kukuk
132fd3d3dc Remove empty line too much 2016-11-13 11:15:04 +01:00
Thorsten Kukuk
119541c611 Implement loading of snapshots and fix snapshot menu layout.
If you want to boot an old snapshot, but not to do a rollback,
we need to tell the kernel which snapshot to use. This patch
also fixes the broken layout of the grub snapshot menu.
2016-11-13 11:08:03 +01:00
Thorsten Kukuk
9c355a796c Move source of grub-snapshot.cfg to the right position
grub-snapshot.cfg should not be sourced at the begining, but
at the end of grub.cfg. Else with creating the first snapshot
this entry is getting the default boot target and the system
does not boot automatically anymore.
2016-11-12 18:24:38 +01:00
Marcus Schäfer
c90211efe7
grub.cfg: Source grub-snapshot.cfg if present
Add a lookup for /.snapshots/grub-snapshot.cfg to the generated
grub.cfg. The file is shell sourced if it exists
2016-11-09 17:13:56 +01:00
David Cassany
908716f8ec Load the default unicode font in grub2
This commit fixes #179. The default font was never loaded,
the loadfont call for the default was missing.
2016-11-04 11:02:23 +01:00
Marcus Schäfer
0377b8fe02
Fixup theme setup in grub2 config template
Only set the theme if the .txt file describing it exists
2016-09-16 11:21:25 +02:00
Marcus Schäfer
3e7676c85d
Added serial console support for isolinux loader
Generate a serial line setup for the isolinux.cfg file
according to the bootloader_console attribute from the
XML description. In addition delete the use of the obsolete
vga kernel parameter and work with the MENU RESOLUTION
ui configuration parameter instead
2016-06-24 14:30:26 +02:00
Marcus Schäfer
b031748cdd
Fix grub bootloader template
Keep gfxpayload
2016-06-21 14:26:42 +02:00
Marcus Schäfer
ce102396a2 Fixed grub2 bootloader config template
Load fonts only when they exist, do not duplicate font
setup in template
2016-06-21 11:18:12 +02:00
Marcus Schäfer
a4a9ffa9aa Added support for setting the bootloader console
Some bootloader e.g grub supports graphics, text and also
serial consoles to hand over the output of the bootloader
menu. With this patch we allow to customize the console
used by the bootloader. So far only grub makes use of the
new attribute

    <type ... bootloader_console="serial|console|gfxterm"/>

This references Trello:

    https://trello.com/c/q9EhNKKV/155-support-for-grub2-serial-console
2016-06-20 18:24:43 +02:00
Marcus Schäfer
5e8c10471a
Update grub2 config tempplate
Load font collection
2016-06-09 17:50:07 +02:00
Marcus Schäfer
e699dc10ee Fixup grub2 theme setup
We can't expect that specific fonts to exist for all theme packages
in all distributions. The code here should rely only on theme.txt
In addition we check if any theme or font related data is found
in the legacy grub location boot/grub which imho should not be
used for grub2
2016-06-08 20:41:10 +02:00
Marcus Schäfer
17de09d26d
Added support for grub2 console switch entry
An additional hidden entry allows the user to switch between the
graphics and the serial console by pressing the 't' key. The kiwi
grub2 template adds this switch if the terminal mode is set to
graphics. The additional entries are only effective of the
grub_platform is set to efi. Fixes #80
2016-05-23 11:33:46 +02:00
Marcus Schäfer
cf991c1a4c
Update grub2 bootloader template menuentries
Mark all menuentries as --unrestricted. Fixes #64
2016-04-29 15:49:10 +02:00
Marcus Schäfer
37ad6008aa
Update bootloader/template inline API documentation
References #49
2016-04-13 11:50:14 +02:00
Thomas Schraitle
45bc5a03a7 Refactor into subpackage to fix #23
Codecoverage are 100% and tests are green

Changes:
* Refactor archive_*.py -> archive subpackage
* Refactor partitioner_*.py -> partitioner subpackage
* Refactor package_manager_*.py -> package_manager/ subpackage
* Refactor bootloader_config*.py -> bootloader/config/ subpackage
* Refactor bootloader_template*.py -> bootloader/template/ subpackage
* Refactor bootloader_install*.py -> bootloader/install/ subpackage
* Refactor repository*.py -> repository/ subpackage
* Refactor filesystem*.py -> filesystem/ subpackage
* Refactor dist_*.py -> dist/dformat subpackage
  The name `dformat` as package name is needed to avoid any name
  conflicts with the built-in function `format`.
* Refactor volume_manager*.py -> volume_manager/ subpackage
* Refactor boot_image*.py -> boot/image/ subpackage
2016-02-27 10:31:31 +01:00