~smoser/curtin:fix/1527664-grub-cmdline-linux-default-in-default-grub

Last commit made on 2018-11-30
Get this branch:
git clone -b fix/1527664-grub-cmdline-linux-default-in-default-grub https://git.launchpad.net/~smoser/curtin
Only Scott Moser can upload to this branch. If you are Scott Moser please log in for upload directions.

Branch merges

Branch information

Name:
fix/1527664-grub-cmdline-linux-default-in-default-grub
Repository:
lp:~smoser/curtin

Recent commits

a232743... by Scott Moser

simplify a bit.

3259873... by Scott Moser

cleanup, add some quoting to add obviousness

ce22923... by Scott Moser

remove trailing white space when carrying over params.

when carrying over parameters that occurred before the --
and no other params, we would see a trailing space on the end
of the 'carry over' parameters.

d8b2f6c... by Scott Moser

more debug

4d0086b... by Scott Moser

fix a bug, add some debug

605b250... by Scott Moser

collect etc/default/grub files

71c0260... by Scott Moser

take Ryan's suggestions for code readability

bd29bd9... by Scott Moser

Adjust helpers/common to edit GRUB_CMDLINE_LINUX_DEFAULT in place.

This will help us avoid hitting upgrade prompts as seen
and described in bug 564853. The change here is only to move
GRUB_CMDLINE_LINUX_DEFAULT to /etc/default/grub from
/etc/default/grub.d/50-curtin-settings.cfg.
Currently, other changes will still to into 50-curtin-settings.cfg.

LP: #1527664

07245a2... by Scott Moser

Fix bug in is_swap_device if a device was smaller than page_size.

If is_swap_device was called on a device (or file) that was smaller than
a page size of the current kernel, then it would raise an OSError.
The change here just makes it check the size of the file before
attempting to read.

A test is added, and the other tests updated to rely less on mock.

LP: #1803672

253b97b... by Joshua Powers

vmtest: add disco tests