Commit Graph

273 Commits

Author SHA1 Message Date
Martin Gracik
30f48041fc Ignore remove errors
On some nfs mounts the shutil.rmtree may traceback
when removing some files. This is not such a problem
so we can ignore these errors and continue.
2011-10-11 14:14:44 +02:00
Martin Gracik
049d73874c Check if /proc is mounted (#741722)
Needed for proper functionality in chroot,
so if it is not there, exit before doing anything.
2011-10-11 14:14:44 +02:00
Brian C. Lane
af6d4e2c50 copy kickstarts into sysroot (#743135)
The installer no longer has access to the initrd's root. We need to
copy any needed files over to /sysroot before switching root. This
copies *.cfg and *.ks files.

It also adds the ability to add dracut hook scripts to the initramfs
from /usr/share/lorax/dracut_hooks/
2011-10-05 09:07:54 -07:00
Martin Gracik
b30b07ca79 Don't use mk-s390-cdboot (dhorak)
Anaconda dropped the mk-s390-cdboot tool, so we can't call it in lorax.
2011-09-22 10:09:12 +02:00
Martin Gracik
60c444c0c9 Use own addrsize implementation (dhorak)
Anaconda doesn't built the addrsize tool used to create the file
containing size and load address for initrd.img. So we implement
its function directly in lorax.
2011-09-22 10:07:11 +02:00
Martin Gracik
05fc838ce2 syslinux-vesa-splash changed filename (#739345) 2011-09-19 10:37:43 +02:00
Martin Gracik
91f7908031 Do not create the sysconfig/network file (#733425) 2011-09-19 10:37:29 +02:00
Martin Gracik
b3301595bc New syslinux theme (#734170) 2011-09-19 10:37:18 +02:00
Ales Kozumplik
c3e3004c47 Log how we run mkisofs.
It's very useful to know when trying to rebuild the iso manually.
2011-09-13 10:43:25 +02:00
Martin Gracik
43be129a48 Raise an exception if isohybrid cannot be run on x86 2011-08-25 10:02:56 +02:00
Martin Gracik
888f33c9d1 Use --noprefix when calling dracut
Do not prefix initramfs files with /run/initramfs
when creating the dracut initramfs.
2011-08-17 09:58:49 +02:00
Martin Gracik
4271e0fc02 Write the lorax verion in the .buildstamp (#689697) 2011-07-29 14:08:03 +02:00
Martin Gracik
d0fc111ac4 Change IsBeta to IsFinal 2011-07-25 10:38:10 +02:00
Martin Gracik
df849d3419 Default to isBeta 2011-07-21 16:19:17 +02:00
Martin Gracik
b0ff70a877 Prepend dracut to the temporary initramfs directory (#722999)
Temporary directory with just the kernel version interferes
with the modules temporary directory.
2011-07-19 09:18:41 +02:00
Martin Gracik
01c026e237 Don't change the installroot (#722481) 2011-07-19 09:15:19 +02:00
Martin Gracik
d9e9b0e57c Create dracut initramfs for each kernel (#722466) 2011-07-18 13:48:56 +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
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
Martin Gracik
fe898c07e6 Use initrd.addrsize, not initrd_addrsize (#703862) 2011-05-12 11:23:45 +02:00
Peter Jones
59d298712d Use process-specific name for dm devices.
If you're doing e.g. an i386 build an an x86_64 build at the same time,
you wind up deadlocking the dmsetup processes in sys_semtimedop()
because they have the same name between the two codepaths. This is
probbaly a dmsetup bug, but even if it weren't, you'd still have two
composes trying to use the same dm devices, and that's bad.  Instead,
stick the pid in the names.
2011-05-04 10:40:05 -04:00
Martin Gracik
d154f56855 Use crc32 check when compressing with xz 2011-04-27 13:56:47 +02:00
Martin Gracik
421e4c3a00 Allow compression type be specified in lorax.conf 2011-04-22 10:57:51 +02:00
Martin Gracik
79b6e5bfa1 Use xz and gzip commands instead of libraries
We're already using find and cpio subprocesses, so using
one more subprocess is not a problem. With this approach
we can pipe cpio to the xz/gzip command, which should
help with the memory issues.
2011-04-22 10:57:51 +02:00
Martin Gracik
19f60aebc8 use reqs not regs for files to backup (dgilmore) 2011-04-15 15:46:06 +02:00
Martin Gracik
713d6f94e7 getkeymaps resides in /usr/libexec/anaconda 2011-04-15 09:47:53 +02:00
Martin Gracik
4c25044020 workdir is a local variable, not a class attribute 2011-04-15 09:42:44 +02:00
Martin Gracik
06ac5762af Add sparcv9 to arch map 2011-04-13 16:14:32 +02:00
Martin Gracik
031e6bab10 Change the location of *.b files on sparc 2011-04-13 16:14:21 +02:00
Chris Lumens
706ac6a55c Add a /bin/login shim for use only in the installation environment. 2011-04-12 10:36:16 -04:00
Chris Lumens
b58190d660 Add systemd and agetty to the installation environment.
Also, set up anaconda.target to be the default systemd unit.
2011-04-12 10:36:04 -04:00
Chris Lumens
51addbb7b4 Specify "cpio -H newc" instead of "cpio -c".
The latter does not always work with every version of cpio, so it's too
unreliable to use.
2011-04-12 10:35:02 -04:00
Martin Gracik
1009ef9df0 Provide shutdown on s390x (#694518) 2011-04-12 12:31:32 +02:00
Martin Gracik
872d0d6ffa Generate ssh keys on s390 2011-03-28 13:14:37 +02:00
Martin Gracik
c47c9d5520 Do not check if we have all commands 2011-03-23 14:15:15 +01:00
Martin Gracik
c8a52d628a Change location of addrsize and mk-s390-cdboot 2011-03-23 14:07:58 +01:00
Martin Gracik
b50f1cb802 Shutdown is in another location 2011-03-23 14:07:26 +01:00
Martin Gracik
2a0dcf846f Do not skip broken packages 2011-03-23 14:06:33 +01:00
Martin Gracik
05fd600885 Wait for subprocess to finish 2011-03-23 09:22:39 +01:00
Martin Gracik
1de4bb132c Have to call os.makedirs 2011-03-22 17:36:46 +01:00
Martin Gracik
84f00068e3 images dir already exists, we just need to set it 2011-03-21 09:23:01 +01:00
Martin Gracik
69214fd47a The biarch is a function not an attribute 2011-03-17 13:26:24 +01:00
Martin Gracik
4486889792 Create images directory in outputtree 2011-03-17 13:04:11 +01:00
Martin Gracik
dc7b2e28dc Use gzip on ppc initrd 2011-03-17 11:03:22 +01:00
Martin Gracik
8ed6ac4d7b Create efibootdir if doing efi images 2011-03-17 11:03:22 +01:00