| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
Some portage programs like eltpatch depend on $TMPDIR.
Bug: https://bugs.gentoo.org/690264
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
determine_real_args() was called
Before determine_real_args() was called, $LOGFILE will probably contain content
from a previous run.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
| |
This can happen until determine_real_args() was called.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
| |
This will fix output when running with "set -x" very early.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
| |
Bug: https://bugs.gentoo.org/690262
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
| |
only when present
Fixes 8458d98a ("Rework --mountboot handling")
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
- Move code to own function.
- Use same logic like mount-boot.eclass.
- Ensure to restore state of boot partition on exit/error.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- To enable sshd in initramfs user MUST now set "dosshd" kernel
command-line parameter.
- "gk.sshd.wait" kernel command-line parameter was added to interrupt
boot process for X seconds to allow for remote login (can be used like
an remote rescue shell).
- For remote unlock of LUKS-encrypted root or swap device, user can still
send unencrypted keyfile via SSH like
$ cat ~/root.unencrypted.key | ssh root@<remote-host> -C post root
or user can now just SSH into the remote host and call "unlock-luks"
like
remote rescueshell ~ # unlock-luks root
to get a cryptsetup prompt.
NOTE: When manually unlocking the encrypted LUKS device, user must call
"resume-boot" afterwards to resume booting.
- "--ssh-authorized-keys-file" parameter added which can be used to
specify a different file than default "/etc/dropbear/authorized_keys"
file.
- "--ssh-host-keys" parameter added to control if in initramfs embedded
sshd should create its own pair of hosts keys (which will be stored in
"/etc/dropbear for re-use, default), use host keys from host system or
should generate host keys at runtime on each boot.
- "ip" kernel command-line parameter will now default to DHCP usage but
does also support addr/CIDR notation to specify a static address.
- "gk.net.iface" kernel command-line parameter was added to use a
different interface than "eth0". You can either use an interface name
or use a MAC address.
- "gk.net.gw" kernel command-line parameter was added which will allow
user to set specific gateway when DHCP isn't used.
- "gk.net.routes" kernel command-line parameter was added which will allow
user to set additional routes when DHCP isn't used.
Please read manpage for additional parameters and more details.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
| |
- Restore output to make sure error message will be visible in case
trap was triggered while we were redirecting output to $LOGFILE.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
| |
Check dynamical for any "registered" distfile.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
| |
This commit will add support for "unpack" task.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the future, genkernel will try to compile all programs used in
genkernel's initramfs on its own instead of copying from host system.
This commit will add support for gkbuilds.
A "gkbuild" is like an ebuild but with reduced functionality.
Using an ebuild-like system will make it easier to maintain those programs
in a standardized way, especially with reworked cross-compile support.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the future, genkernel will perform tasks such as compilation or unpack
in a separated process, primarily to allow for sandbox usage, similar how
portage executes ebuilds.
Each task will have its own "worker" script.
This commit will add the code required to run such a worker.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add new "--cross-compile" parameter which will accept a target triplet
and replaces "--arch-override", "--utils-arch", "--utils-cross-compile"
and "--kernel-cross-compile" parameter.
- Add "--utils-cflags" to allow user to overwrite CFLAGS used for
compiling programs for initramfs.
- Add tc-* functions.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
| |
- Renamed to set_color_vars()
- Use NOCOLOR variable
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
| |
- Define and make use of GK_V_CACHEDIR.
- Add support for XZ archives.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
- End trace, just in case.
- Don't try to be smart and grep $LOGFILE for errors: Results
are often misleading.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
- Make use of tar's auto-compress feature, i.e. use archive
suffix to determine the compression program.
- get_tar_cmd() function added which will try to return tar
command utilizing pbzip2, pxz or pigz when possible.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
| |
- Quote $LOGFILE.
- Call dump_debugcache().
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
- Make use of get_useful_function_stack().
- Add 4th optional parameter to control output indent level.
- Create a marker file (KCONFIG_MODIFIED_MARKER) when we have
modified configuration.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
| |
Some functions will change IFS so we must be able to restore
the original value. Instead of saving IFS all the time, do
it only once.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
| |
- Adjust loglevel.
- Quote $TMPDIR.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
| |
- Renamed to get_indent().
- Make use of get_useful_function_stack().
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use proper bash expressions.
- Make use of get_useful_function_stack().
- When xtrace option (set -x) is set, disable during print_info
to avoid cluttering the output.
- By default write everything to $LOGFILE despite $LOGLEVEL.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
| |
Function can be called multiple times. So we have to ensure that we clear
already dumped content.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
|
| |
"Useful" because it will not return the complete stack. Only
all functions till calling or specified function while filtering
common functions like "main".
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
| |
We will have to reset trap from time to time so
create a function for that.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
| |
--cleanup or --no-cleanup should be clearer.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
| |
Internal helper function which can be used during development to act like
a breakpoint.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
| |
When "..." is used to indicate that genkernel will be doing something, use
" ..." notation.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
|
| |
Relies on Python os.path.expanduser and realpath from coreutils.
Bug: https://bugs.gentoo.org/412321
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
| |
Bug: https://bugs.gentoo.org/669412
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
|
|
| |
Bump to open-scsi-2.0.875 & open-isns-0.99.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
|
|
|
| |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|