| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If we're given the path to an iso, we need to split it up so we mount
the directory the iso is *in*, and then mount the iso.
Also, fix a harmless typo bug in find_runtime and clean up/clarify
anaconda_live_root_dir a bit.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
copy systemd .service/.target files into the appropriate directory.
also, some cleanups for makeupdates. whee!
|
| | | |
| | | |
| | | |
| | | | |
We're not quite ready for the switch yet, so suppress these messages.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Loader used to create a default ifcfg-* file for each unused network
interface, containing DEVICE, HWADDR, UUID, BOOTPROTO=dhcp, etc.
Network.update() populated self.netdevices by reading those files,
*skipping any interface that lacked that file*, which caused the vnc
traceback in bug #804504.
And without BOOTPROTO=dhcp, "ifup $dev" didn't work post-install, which
caused #804716.
(Personally I think "ifup" should fall back to the same defaults as
NetworkManager rather than making us write the defaults to a file, but
we'll save that for later.)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It doesn't matter why we brought up the interface - we want to hand the
info over to NM regardless. So save the netinfo for all onlined
interfaces.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add a systemd-generator script that puts anaconda on the correct console
tty, then puts shells on tty2 and the first virtualization console
(unless we're using it for anaconda).
Adding "TTYPath" to the systemd services means systemd takes care of
setting up all the terminal stuff - picking the right TERM value,
setting the keyboard mode to K_UNICODE, and all that esoteric weirdness.
Also, move anaconda's dependencies into anaconda.target, and make
anaconda start *after* anaconda.target, just so we can be sure that e.g.
NetworkManager is active before anaconda starts.
(as a bonus, it also shuts off plymouth correctly, just in case we ever
want to have a anaconda-specific bootsplash)
|
| | | |
| | | |
| | | |
| | | | |
(cherry picked from commit cafb055790f6c63642fd64b20900f3fbb5318fad)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We handle "nfs" and "nfsiso" exactly the same, but "nfsiso" confuses
mount_nfs().
Make sure we pass "nfs" along to mount_nfs().
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If the user passes 'updates=XXX' or 'inst.updates=XXX' we should accept
that like we do 'live.updates=XXX'. At least for now.
Also remove a comment about updates=XXX - it turns out that setting
updateSrc is necessary (the storage module puts it into disallowDrives).
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Anaconda wants to find its files in /tmp/updates, so put them under
tmp/updates in the updates image.
The one exception to this is anaconda itself, which should be in
/usr/sbin.
Also skip dracut/ as we can't sanely update those things (yet).
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
loader used to put the install source at /mnt/install/source; we're
moving to /run but it simplifies things to keep the directory name the
same.
This lets us just symlink /mnt/install to /run/install and things should
work like they used to.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If we brought up any interfaces in stage1, we need NetworkManager to
take them over before anaconda starts.
We *could* do this conditionally and delay NM startup until needed, but
this is the simplest fix for now.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
anaconda expects any device brought up in stage1 to still be active, so
let's make sure we pass along the required info for NetworkManager.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Make sure that /tmp/net.ifaces exists; this file triggers the dracut
'ifcfg' module and makes it copy all the files in /tmp/ifcfg to
/run/initramfs/state/etc/sysconfig/network-scripts.
Then fedora-import-state.service picks those files up and off we go!
(We could write them to state/etc/... ourselves, but we want dracut to
be able to overwrite the files in /tmp/ifcfg if it needs to)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
initscripts-9.35-1 contains fedora-import-state.service, so we can drop
this from here.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If you set --no-memcheck or inst.memcheck=0, check_memory will just
current/required RAM amounts (along with a prominent message that the
check was disabled) and continue.
This will help us test on low-memory machines.
|
| | | |
| | | |
| | | |
| | | | |
Had a '&&' where I needed '||'. Oops. Thanks to bcl for catching it.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If you're booting from a CD but using a kickstart for other stuff, we
still need to set up / retrigger block stuff *even though you don't have
a repo defined by the kickstart*.
The problem was two things: first, we were leaving $root set to
"anaconda-kickstart", so parse-anaconda-repo.sh didn't change anything.
Second, when root was set to "anaconda-auto-cd" because there wasn't a
inst.repo arg, we never triggered the disk magic. So we never found the
CD.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
So yeah, re-parsing the whole commandline just makes us emit error
messages and doesn't write out the ifcfg lines we wanted, so let's not
do that.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(note that the one for the ksdevice will get overwritten by dracut,
but that's OK)
update comments to reflect current limitations etc.
oh, and AFAICT loader just uses DHCP for BOOTP, so handle BOOTP like
DHCP if we see that. (which we won't.)
|
| | | |
| | | |
| | | |
| | | | |
I guess some people might want this?
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
First, cleanup: don't bother with /tmp/ks.info, export "$ksdevice".
Next: we need to specify which net interface is the bootdev if we've got
more than one. So:
- if we get a specific ksdevice from the cmdline, set "bootdev=$ksdevice"
- otherwise (ksdevice=link etc.) set $ksdevice when a device comes up..
- ..and set "bootdev=$ksdevice" from parse-kickstart if needed.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Re-running the cmdline hook will cause the 'network' module to write out
the network config files, which should make the 'ifcfg' module write
ifcfg-eth* files, which should fix the kickstart 'network' command.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Currently anaconda will crash if we don't set rd.luks=0. The others
anaconda can *mostly* handle but historically they would have been set
to 0, so it's more reliable if we do it that way.
Someday soon we'll make sure anaconda can handle already-active devices
and we'll remove this block of code. Really.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The options are stored without "inst." so when parsing boot arguments
we need to first strip the "inst." if present.
|
| | | |
| | | |
| | | |
| | | | |
Was missing a comma. Whoops.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
udev properties need to be set when udev is running. As it turns out,
that's basically what the pre-trigger hook exists for.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If inst.ks is on the commandline, the dracut module fetches and
preprocesses the kickstart, then saves it to /run/install/ks.cfg.
So if we see a 'ks' option on the boot commandline, anaconda's option parser
should assume that the ksfile is /run/install/ks.cfg.
On the other hand, the '--kickstart' option can still be used on the
commandline to set ksfile to a different filename.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
- we should run the kickstart before anything else
- don't run netroot again if it's already finished
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
following getty@.service, make sure we run the shell after plymouth
quits, etc.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
dracut writes out an ifcfg-ethX file and a dhclient lease file for the
interface used to mount the runtime. We need to pass that along to
NetworkManager so it won't bring down the interface we're using for our
root device.
This service copies the contents of the /run/initramfs/state directory
into its intended place, as would normally be done in fedora-readonly
for NFS readonly-root systems.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We need to hand over the ifcfg file and dhclient lease to NetworkManager
to keep it from trashing our network interface when we're using NFS
root.
To get the files written by the ifcfg module, we need to make sure a few
things are set up properly.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
replace anaconda{nfs,url}root with anaconda-netroot.sh
fix up the arg parsing accordingly
|
| | | |
| | | |
| | | |
| | | | |
Also, make the ks parsing stuff write needed info to /tmp/ks.info.
|
| | | |
| | | |
| | | |
| | | | |
also, make sure we set it when we have a kickstart.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
run_kickstart used to be in parse_kickstart, but it got moved out
(because ks=file:// happens during the cmdline phase, it doesn't need to
run, just parse)
|