summaryrefslogtreecommitdiffstats
path: root/dracut/module-setup.sh
Commit message (Collapse)AuthorAgeFilesLines
* Add 'eject' to the anaconda initramfsWill Woods2013-02-111-0/+2
| | | | | No wonder we can't seem to eject the DVD - we don't have the eject binary! Include it in the initramfs.
* Add dracut/save-initramfs.shWill Woods2013-02-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since dracut dropped its slightly-too-clever trick to save a copy of itself at /run/initramfs, we need to locate or save a copy of initramfs so we can switch back into it and shut down properly. So: first, check to see if we're running off media; if so, we can just use the initramfs from the media. Easy! Otherwise we need to save a copy. The anaconda initramfs (for current F18-ish images on x86_64) uses about 96M RAM when unpacked, which is a bit wasteful. To save RAM we can filter out some stuff we don't need for shutdown: * kernel modules: ~39M * firmware: ~9M * python: ~8M * ssl certs: ~1M * fsck binaries: ~1M which leaves us with 38M of data. We can reduce this to 18M by gzipping it, but that delays startup for 3s on my test system. (Using xz would save 4.5M, but it takes 15s (!) and uses 100M RAM (!!).) Using gzip -1 drops this to just over 1 second; RAM use goes up by 1M, but that seems like a reasonable tradeoff. If `pigz` is available, that gets used instead, which makes the delay basically negligible on any modern multicore system.
* Copy command line files prior to pivotJesse Keating2012-09-191-0/+1
| | | | | We need these after the pivot and we can't get to them without copying them into /run ourselves.
* move anaconda-modprobe to pre-udev hook, silence modprobe errorsWill Woods2012-08-201-1/+1
| | | | | | a) cmdline happens before we start messing with devices, so we don't really need to do modprobe here, b) we don't care if the user doesn't have a floppy drive, that's OK
* dracut: fix inst.ks.sendmac (#826657)Will Woods2012-08-131-0/+1
| | | | | | | | | | | | | | Originally, parsing inst.ks.{sendmac,sendsn} happened in parse-anaconda-kickstart.sh. But it turned out that sendmac needed to happen after the modules were loaded, so commit 4fcc157 tried to fix this by making it a function, and using initqueue to run that function in the 'initqueue/settled' hook. Well, it turns out initqueue doesn't like adding jobs that are function names - the job ends up empty and nothing happens. So instead, let's handle these two arguments directly in a script that runs in initqueue/settled.
* dracut: support updates=hd:... (#807982)Will Woods2012-05-011-0/+2
| | | | | | | | | | | Since we've removed all UI from initramfs, plain 'updates' no longer works if you want to load an updates image from disk. This adds support for fetching updates images, much the same way as we do with kickstarts. Note that I'd really like to merge all the *-genrules.sh / fetch-*-disk junk, but time is short..
* Add 'cms' dracut module on s390Will Woods2012-04-231-0/+3
| | | | This does some magic s390 setup junk, whee.
* run fetch-kickstart-net.sh after setup_net (#804846, #811851)Will Woods2012-04-201-1/+1
| | | | | | | | | | Commit 1e4a880 in dracut adds 'online/05-setup_net.sh' to ensure that setup_net gets run before (most) online hook scripts, but we were running fetch-kickstart-net.sh at a priority of 00. Move it to priority 10 so setup_net happens first. (Credit to Harald Hoyer <harald@redhat.com> for catching this.)
* load modules needed by Anaconda (#804522)Brian C. Lane2012-03-271-0/+1
| | | | | Anaconda expects a minimum set of modules to be loaded, things like raid1, etc.
* set ANACONDA=1 udev property in the right placeWill Woods2012-03-161-0/+1
| | | | | udev properties need to be set when udev is running. As it turns out, that's basically what the pre-trigger hook exists for.
* fixups: run ks early, don't repeat netrootWill Woods2012-03-161-1/+1
| | | | | - we should run the kickstart before anything else - don't run netroot again if it's already finished
* fixup: "online" hook renamed "initqueue/online" upstreamWill Woods2012-03-161-2/+2
|
* anaconda-netroot.sh: make sure dracut writes out the ifcfg filesWill Woods2012-03-161-1/+1
| | | | | | | | | 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.
* Use "online" hook to handle anaconda network root devicesWill Woods2012-03-161-2/+1
| | | | | replace anaconda{nfs,url}root with anaconda-netroot.sh fix up the arg parsing accordingly
* Fetch network kickstarts from the "online" hookWill Woods2012-03-161-1/+1
| | | | Also, make the ks parsing stuff write needed info to /tmp/ks.info.
* replace pythondeps.sh with python-deps (python script)Will Woods2012-03-161-1/+1
| | | | | | python is better at figuring out python deps this way. big thanks to bcl for showing me python's "modulefinder" module.
* move parse-kickstart.py back to parse-kickstartWill Woods2012-03-161-1/+1
| | | | | rpmbuild wants to build .pyc/.pyo files for it, and we don't need/want that.
* refactor network handling (support ibft and ksdevice)Will Woods2012-03-161-0/+1
|
* add fetch-kickstart-disk and fetch-kickstart-netWill Woods2012-03-161-1/+2
| | | | and modify module-setup.sh accordingly
* parse-kickstart updatesWill Woods2012-03-161-1/+1
| | | | | | - rename to parse-kickstart.py - make it write /tmp/ks.info - add parse_kickstart function to anaconda-lib
* anaconda-{nfs,disk}root updatesWill Woods2012-03-161-1/+1
| | | | | move anaconda-hdroot to anaconda-diskroot (it works for CDs too!) use anaconda_live_root_dir in nfsroot and diskroot
* split genrules into repo-genrules.sh and kickstart-genrules.shWill Woods2012-03-161-1/+2
| | | | also move some functions into anaconda-lib
* Drop dmidecode binary, just cat /sys/class/dmi/id/product_serialWill Woods2012-03-161-2/+0
|
* add more kickstart code, shuffle genrules code aroundWill Woods2012-03-161-1/+1
| | | | | | | add genrules for kickstart stuff. add when_netdev_online for ks/dd network bringup. add ksdevice=bootif support aaaaand clarify some comments and things.
* add anaconda-urlroot (handle inst.repo=[http|ftp])Will Woods2012-03-161-0/+1
|
* anaconda-dracut: make sure we execute pythondeps.shWill Woods2012-03-161-1/+1
|
* dumb typo fix: "convertfs", not "covertfs"Will Woods2012-03-161-1/+1
| | | | | | This was making dracut say: E: Dracut module "anaconda" cannot be found. E: Dracut module "covertfs" cannot be found.
* dracut: depend on "convertfs" moduleWill Woods2012-03-161-1/+1
|
* Add anaconda dracut module [WIP!]Will Woods2012-03-161-0/+38
This adds the dracut directory and anaconda-dracut subpackage. The 'anaconda' dracut module replaces loader. It should handle all the tasks that loader used to handle in the first stage of the boot process. It's a work in progress, but it currently supports repo={http,ftp,nfs} and most anacaconda network options. Kickstart parsing is handled using a python interpreter and pykickstart, which (surprisingly) only adds ~600k to the initramfs. Driver disks are not yet supported.