diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-03-26 04:59:15 +0000 |
---|---|---|
committer | Raphaƫl Hertzog <hertzog@debian.org> | 2020-05-01 09:40:40 +0000 |
commit | fd18d46e0eb6abfe757f8764c65ac4c472fcdeef (patch) | |
tree | bc1806728fdce98c0f7d7198c781ed6b95aec342 /functions/losetup.sh | |
parent | 2c1af527fdd4e97d79267f8afb7696fe96331982 (diff) | |
download | vyos-live-build-fd18d46e0eb6abfe757f8764c65ac4c472fcdeef.tar.gz vyos-live-build-fd18d46e0eb6abfe757f8764c65ac4c472fcdeef.zip |
grub2|loopback: avoid perl for live entry creation, use temp file
instead of cramming the live entries into a string via a layer of functions
for terminating entries with newlines, which we then have to run through
perl to tweak the newlines for correct use with sed... let's write the
entries to a temp file, then use that file in the sed replacement.
the helper functions injecting newlines to the end of entries as they were
built into a long string have obviously become unnecessary and so were
removed. one function was renamed for reasons of consistency and clarity.
the file is initially deleted before use for reasons of wanting to bullet
proof the codebase to work properly under conditions of recovering from
failure/cancellation, `--force` re-running and such.
this removes the last use of perl.
Gbp-Dch: Short
Diffstat (limited to 'functions/losetup.sh')
0 files changed, 0 insertions, 0 deletions