Commit Graph

1240 Commits

Author SHA1 Message Date
Will Woods
da2b53d91f Fix x86 "root=..." quoting problem and add udev_escape()
udev_escape gets passed to the arch templates so they can properly
escape the root=live:CDLABEL=... argument.
2011-06-30 13:24:07 -04:00
Will Woods
45c8f234ac Refactor: Merge TemplateParser+TemplateRunner into LoraxTemplateRunner
Also move 'glob' and 'exists' into the default args held by the template
runner.
2011-06-29 12:43:12 -04:00
Will Woods
9cd0ac09d1 treebuilder: decode escape sequences in the 'append' command
Note that this might not work in python3 (we might need to encode the
data to utf8 before we can decode the escape sequences).
2011-06-27 19:24:05 -04:00
Will Woods
d1266ff4e9 x86,ppc: add "root=live:CDLABEL=..." boot arg to CD images
The current implementation is hacky and gross; we should at least update
the bootloader files in anaconda to have a %ROOT% param in them.
2011-06-27 19:22:33 -04:00
Will Woods
25ef6b604d runtime-cleanup: remove cjkuni-uming-fonts line 2011-06-27 18:29:53 -04:00
Will Woods
a902bff9e7 runtime-cleanup: remove spurious "removefrom" lines
"fedora-gnome-theme" and "gtk3-engines" don't exist anymore.
2011-06-27 18:28:17 -04:00
Will Woods
e1a0e40ffa log message cleanup 2011-06-27 17:54:09 -04:00
Will Woods
3388c1c529 fix use of brace_expand in removefrom 2011-06-27 16:03:40 -04:00
Will Woods
741fbc7b43 fixup: import check_output for generate_module_info 2011-06-27 16:02:51 -04:00
Will Woods
6b218437c8 generate_module_info fixup: "join" should be "joindir" 2011-06-27 15:18:16 -04:00
Will Woods
c2631bd8e3 remove unused 'constants' module 2011-06-27 14:51:54 -04:00
Will Woods
9ac7db8cb1 Add TreeBuilder.generate_module_data() for depmod/module-info
generate_module_data() runs depmod for each kernel module in the install
root, then generates the (anaconda-specific) module-info files.
2011-06-27 14:46:47 -04:00
Will Woods
c7200e2aa8 replace cjkuni-uming-fonts with wqy-microhei-fonts (#709962)
wqy-microhei-fonts has better font coverage for Simplified Chinese. As
an added bonus, it's ~16MB smaller.
2011-06-27 13:04:18 -04:00
Will Woods
f8da53ac51 remove get_missing from LoraxRequiredCommands 2011-06-27 12:57:50 -04:00
Martin Gracik
23f9879b0e Change cjkuni-uming fonts for wgy-microhei (#709962) 2011-06-27 13:07:37 +02:00
Martin Gracik
4f57d574a8 Remove check for required commands
Not all architectures need all the commands, so the check
does not work very well.
2011-06-27 12:47:10 +02:00
Martin Gracik
00302d9434 Remove outputtree.py 2011-06-27 12:42:57 +02:00
Martin Gracik
be1178f4c5 Remove unused code 2011-06-27 12:31:46 +02:00
Will Woods
c0cf2095e4 remove f15 junk from runtime-postinstall 2011-06-24 18:19:34 -04:00
Will Woods
2100445ad1 Expand braces (e.g. /usr/share/{doc,man,info}) in globs
The braces will be expanded as in the shell, before globbing. Note that
the output may include duplicates.
2011-06-24 18:12:59 -04:00
Will Woods
0fc63effd6 Remove TODO - doesn't need to be in git 2011-06-24 18:12:11 -04:00
Will Woods
6ebbe2c19c remove f15 junk from runtime-cleanup 2011-06-24 18:09:44 -04:00
Will Woods
ef8e0b4538 add DataHolder.copy()
Returns a DataHolder rather than a dict, so copy() works as expected.
2011-06-24 17:42:53 -04:00
Will Woods
8122690ab9 runtime is images/install.img, or LiveOS/squashfs.img on boot.iso
rename the runtime image in the tree and on the ISO.
2011-06-24 17:26:01 -04:00
Will Woods
30ac2e9aa5 Fix product.name.lower() in RuntimeBuilder changing TreeBuilder
Let RuntimeBuilder use a copy of the 'product' object instead.
2011-06-24 13:11:15 -04:00
Will Woods
796e0ee45f runtime-cleanup: fix module cleanup
runtime-cleanup doesn't get a "kernels" arg, so just delete things under
/modules/*/kernel/...
2011-06-24 11:17:48 -04:00
Martin Gracik
19637aa986 New version 2011-06-24 13:25:19 +02:00
Will Woods
9edadb59fa runtime-cleanup.tmpl: code cleanups
rearrange some things to flow more naturally.
2011-06-23 17:45:12 -04:00
Will Woods
35d532d119 runtime-cleanup: delete unneeded kernel modules
Removing the 'module' whitelist added ~50M of kernel modules. Yuck.
This commit adds a kmod blacklist, removing ~34MB of kernel modules.

Yes, that's a ~16MB increase, but we're also including a whole mess of
stuff that was getting left out before: missing ISDN drivers, wireless
drivers, net bonding drivers, infiniband drivers, etc.
2011-06-23 17:43:16 -04:00
Will Woods
99a612fb0a TreeBuilder: fix removelocales 2011-06-23 17:30:42 -04:00
Will Woods
5ebaccef4d fix create_runtime workdir path thinko
I used basename when I meant dirname. Duh.
2011-06-23 12:12:37 -04:00
Will Woods
b73132af75 rename "runtime" template arg to "runtime_img"
Mako uses "runtime" internally for things, and if you clobber it stuff
will just break in weird ways. So don't do that.
2011-06-23 10:46:28 -04:00
Will Woods
5eb6c9b12f arch templates: install runtime to /images/, put it on boot.iso
make sure the arch templates (s390 excluded) copy the runtime image in
to the /images/ dir, and make sure it gets grafted/copied into the
boot.iso.
2011-06-22 20:37:09 -04:00
Will Woods
eda011a49c rename runtime "anaconda-squashfs.img", pass path to Treebuilder
dracut's dmsquash-live-root won't recognize the image as a squashfs live
image unless its name matches "*squashfs.img", so choose the filename
accordingly. Then pass the name to the TreeBuilder so it can move it
into place.
2011-06-22 20:07:08 -04:00
Will Woods
d322180dce instantiate RuntimeBuilder/TreeBuilder with keyword args 2011-06-22 19:22:33 -04:00
Will Woods
7ed705bf09 pass configdir to postinstall() 2011-06-22 17:20:00 -04:00
Will Woods
996208f1c8 make create_runtime() just build the image; remove initrd_append
create_runtime should just create the runtime image. We'll worry about
making the big combined boot image in the arch-specific templates.
2011-06-22 17:12:56 -04:00
Will Woods
f2814d5c90 treebuilder: add _filelist(*pkgs), use it in removepkg/removefrom 2011-06-22 17:12:56 -04:00
Will Woods
f724051499 whitespace cleanup 2011-06-22 17:12:56 -04:00
Will Woods
e7e070596e refactor runtime-cleanup to do multiple removals per line 2011-06-22 14:20:02 -04:00
Will Woods
2b993610c1 runtime-cleanup: remove redundant openldap entries 2011-06-22 13:10:11 -04:00
Will Woods
d1d0e63542 runtime-cleanup: remove redundant "removefrom firstboot ..." lines 2011-06-22 13:01:26 -04:00
Ales Kozumplik
16f9a21347 Disable rsyslogd rate limiting on imuxsock.
Unbelievably, a new rsyslogd version turned on this undesirable feature by
default.

Related: rhbz#696943
2011-06-21 19:25:13 -04:00
Will Woods
7bf9ee4fce Use bcj filter for compressing squashfs ramdisk
Using the BCJ filter can shave a few MB off the filesize of our ramdisk
at the expense of added CPU time. Worth it.
2011-06-15 17:38:42 -04:00
Will Woods
d0960bba14 Add 'squashfs' compression type
This adds the 'squashfs' compression type, which builds runtime images
that stay compressed in RAM. It accomplishes this by building the images
almost exactly like the Live images are built:

1) Create an empty ext4 filesystem on a large sparse file
2) Copy the runtime files into the ext4 filesystem
3) Place the ext4 image at "LiveOS/rootfs.img"
4) Create a squashfs.img which contains LiveOS/rootfs.img

To make this bootable, we need dracut's startup scripts. So before
creating the runtime image, we make a dracut initramfs.img by chrooting
into the runtime and running dracut.

Finally, we add squashfs.img to initramfs.img, along with an extra file
(/etc/cmdline) which directs dracut to use /squashfs.img as its root
device. And there we go! Easy, right?!
2011-06-15 17:37:57 -04:00
Will Woods
fc000a51e1 refactor: split make_initramfs_runtime out of compress()
No code changes here.
2011-06-09 15:51:36 -04:00
Will Woods
6b8fa8447a refactor: rename "compression speed" -> "compression args"
This makes the compression code slightly more generic:

- [compression] "speed" config item renamed to "args"
- default changed from "9" to "-9"
- "cspeed" variables renamed "cargs"
- pass "args.split()" on compress cmdline instead of "-%s" % speed
2011-06-09 13:00:20 -04:00
Will Woods
2096ebc551 remove unused LoraxTemplate.getdata() 2011-06-08 17:32:38 -04:00
Will Woods
6ad14ea42b keep libmodman and libproxy (#701622) 2011-06-08 12:53:49 -04:00
Will Woods
f6b8893fd6 Fix passing kernels to template in TreeBuilder 2011-05-31 14:36:59 -04:00