Commit Graph

4 Commits (master)

Author SHA1 Message Date
shinji-s a94572c2bc Fix a rather critical bug in 'ConfigTweaker.tweak_first_match()' that got 'param_operation' contaminated with 'param_operations_for_persistence' as the recursion progress.
Support CentOS DVD installers. (Full install DVD requires ext3 formatted usb stick because its size exceeds 4GB.)
Straighten Centos Live DVD support. (Those were recognized as 'fedora' before this fix.)
Reorgazined Twaker classes a bit.
Removed control chars and extra spaces in test inputs.
6 years ago
Shinji Suzuki ef4d34b05d Convert 'gentoo' rewrite-code to ConfigTweaker based one.
Rename 'ParamTweaker' to 'ConfigTweaker'.

pentoo-amd64-hardened-2018.0_RC5.8_pre20180305 wants 'overlayfs' present
in boot params and 'aufs' absent in order to boot properly.
6 years ago
Shinji Suzuki 4ef4146180 Replace 'live-media=' on non-liveboot lines too. This is for compatibility
with prior implementation. (Perhaps better to have this work on liveboot
lines only like other rewritings?)

Move the test function for rewrite machinary into param_rewrite.py.

Add copyright header.
6 years ago
Shinji Suzuki 7a18b71349 Introduce infrastructure for rewriting boot configs and refreshed
persistence support for debians.
  * Boot parameters have to be 'persistence' and 'persistence-path'
  rather than 'persistent' and 'persistent-path'.
  * Backing file must be named 'persistence' rather than 'live-rw'
  * Filesystem on the backing file must contain 'persistence.conf'.
Avoid rewriting of paths starting with '/cdrom/' or '/dev/'.
Try somedir/vmlinuz if somedir/vmlinuz.efi is unavailable.
Check availability of 'e2fsck' and 'resize2fs'.
Added data/tools/persistence.gz that has initialized ext3 file
system that contains 'persistence.conf' file.
6 years ago