| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Using "if flags.liveCDinstall or flags.imageInstall or flags.testing" over
and over is incovinient, one may forget to involve some of the conditions
and there is no logging of the skipped actions.
This patch adds flags.can_touch_runtime_system function, that can be used as
a guard and that logs skipped actions. It can also be easily mocked or
masked for the needs of testing.
|
|
|
|
|
|
|
| |
cmdline mode means do not prompt for missing kickstart data. We need a
way to expose this setting to the interface, so create a flag for it.
"cmdline" cannot be used because that already exists as a flag, so
"ksprompt" is created as a bool. Defaults to true.
|
|
|
|
|
| |
We don't have full access to the initrd anymore, so we've had to move
where we put the cmdline files. Read from the new location.
|
|
|
|
|
|
|
| |
Use case is to create images using livemedia-creator where we wont be
running on the target platform.
Signed-off-by: Brian C. Lane <bcl@redhat.com>
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
Makefile.am
anaconda
anaconda.spec.in
loader/loader.c
loader/net.c
loader/unpack.c
po/POTFILES.in
pyanaconda/__init__.py
pyanaconda/bootloader.py
pyanaconda/cmdline.py
pyanaconda/constants.py
pyanaconda/dispatch.py
pyanaconda/errors.py
pyanaconda/flags.py
pyanaconda/iutil.py
pyanaconda/kickstart.py
pyanaconda/platform.py
pyanaconda/storage/__init__.py
pyanaconda/storage/devicetree.py
pyanaconda/storage/fcoe.py
pyanaconda/storage/formats/swap.py
pyanaconda/storage/iscsi.py
pyanaconda/storage/partitioning.py
pyanaconda/yuminstall.py
scripts/makeupdates
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
https://bugzilla.redhat.com/show_bug.cgi?id=827116
The default on PowerPC machines is to change the boot order to boot into the
newly installed drive. There are install scenarios where this is not
preferable. So, I have added a new boot commandline and kickstart option
called leavebootorder.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This creates an ExecStartPre on the anaconda-sshd.service that will
check for a kickstart entry for sshpw. It will add/modify users
accordingly prior to launching the sshd service. Since now sshpw and
sshd bring up happens outside of and before anaconda starts, we can
remove sshd.py and any reference to it.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It appears that Lenovo systems aren't the only ones that have problems
booting from GPT labeled disks. This patch does the following:
* default to msdos labeled disks
* remove the GPT blacklist
* remove nogpt cmdline argument
* add gpt cmdline argument to force use of GPT disklabel
|
| |
| |
| |
| |
| | |
read flags from all the conf files in /run/initramfs/etc/cmdline.d/
And add support for filename globs to the read() method
|
| | |
|
| |
| |
| |
| |
| |
| | |
It was missing an argument.
Signed-off-by: Brian C. Lane <bcl@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
set_cmdline_bool replaces decideCmdlineFlag - it uses BootArgs.getbool.
read_cmdline sets a bunch of flags based on the contents of cmdline -
this code is basically just split from where it used to live at the end
of __init__.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This replaces Flags.cmdline (and Flags.createCmdlineDict()) with a new
BootArgs class.
BootArgs' parsing is slightly cleaner and it reads from other data
locations (/run/initramfs/etc/cmdline for example).
It's a subclass of OrderedDict, so things specified later
on the boot commandline can override things near the start.
|
| |
| |
| |
| |
| |
| |
| | |
- make Flags a subclass of object
- Drop the silly games with __dict__['flags'] in favor of directly
setting attributes
- Preserve the exception-on-get/set-of-unknown-attribute behavior
|
| |
| |
| |
| |
| |
| | |
On rare occassion, it's helpful to know whether this is an automated install
or an interactive install. I've purposefully not put "kickstart" into the
name of the flag since all installs involve kickstart now.
|
|/
|
|
|
| |
This reverts commit 7b909ceb20402d18fb8a8bdb6aad1c51c35db30c.
This reverts some of commit 0b30b8ec7ec3c4dbde75da70d0445194ce22e266.
|
|
|
|
| |
This is for BIOS systems that absolutely cannot boot from GPT disks.
|
|
|
|
| |
Convert the others to their proper new path.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix shlex traceback if pxeboot cmdline ends in a quote (#500198)
There's a pxelinux bug where it fails to add the beginning quote
when it tries to add BOOT_IMAGE= to the commandline and the label
has spaces (you get e.g.: 'linux BOOT_IMAGE=vmlinuz with label"')
Previously we tried to fix this up by adding a quote after
BOOT_IMAGE= whenever the cmdline ends in a quote. This causes us
to have unbalanced quotes if the cmdline is something like:
linux BOOT_IMAGE=vmlinuz ethtool="speed 100 duplex"
With this change, we now split the commandline at BOOT_IMAGE= and
check to see if the right side has unbalanced quotes. If so, we add
a quote after BOOT_IMAGE=.
Signed-off-by: Ales Kozumplik <akozumpl@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Multiple image files can be specified via "--image=/path/to/image[:name]"
on the anaconda command line. The name cannot contain colons.
Whenever disk images are specified, they automatically become the
only disks visible to anaconda, as if "ignoredisks --only-use" had
been used.
Fow now, only normal disk images are supported. Do not try to build
a fwraid or mpath in image files and expect anaconda to handle it
correctly.
Don't log to system log for disk image installs. For one thing, it adds
a huge amount of text to /var/log/messages. It also has some problem
that prevents subsequent attempts to connect to the syslog socket (from
anaconda_log.py, anyway) to fail.
Don't allow configuration of network devices during disk image installs.
Also, don't write anything in /etc/sysconfig on the host system
when doing image installs.
Don't start auditd when doing an image install.
Don't run setupTimezone if installing to disk image file(s). We don't
want to change settings on the host system.
Don't start or stop iscsi, fcoe, dasd, or zfcp during image installs.
|
| |
|
| |
|
|
a real Python package.
Also updates the build and autotools stuff to work with the new structure
|