summaryrefslogtreecommitdiffstats
path: root/appliance/init
Commit message (Collapse)AuthorAgeFilesLines
* Fix time and timezone to be correct within the appliance.Richard Jones2010-04-121-1/+8
| | | | (cherry picked from commit 508f1ee87e816bf6b6fc8e629ccbb2d61a971169)
* rescue: Pass $TERM from library into the virt-rescue appliance.Richard Jones2010-03-261-1/+1
| | | | | We set it on the kernel command line, then get it out from there when the rescue appliance boots.
* rescue: Sync disk on exit, and improve messaging.Richard Jones2010-03-261-1/+10
|
* appliance: Set $PATH instead of hard-coding paths to binaries everywhere.Richard Jones2010-03-261-1/+2
| | | | | | Change the appliance so PATH includes common directories. Thus we don't need to hard-code paths to binaries (eg. "/sbin/fdisk") everywhere.
* Use 'service' if installedGuido Günther2010-02-241-1/+10
| | | | | | | | | | | | | | | | | | | | | Hi, attached patch should make: http://git.debian.org/?p=pkg-libvirt/libguestfs.git;a=blob;f=debian/patches/0003-appliance-Use-service-udev-start-instead-of-running-.patch;h=c9e6b8489807d4fb1247cb6a8b6f9799bad2a09e;hb=d3a21b5b6850fc3c6e7903d0f5cafa3eb4197d49 http://git.debian.org/?p=pkg-libvirt/libguestfs.git;a=blob;f=debian/patches/0004-Ubuntu-Prefer-starting-udev-by-hand-instead-of-using.patch;h=64b65a971b186e6ab1c9351e94b46d6f5aa242e0;hb=d3a21b5b6850fc3c6e7903d0f5cafa3eb4197d49 superflous. If there's an init script it uses 'service' or falls back to calling the init script directly if it isn't there, otherwise it starts udev directly. Tested on Debian only so far. The patch is based on Rich's above two patches. Cheers, -- Guido From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org> Date: Tue, 23 Feb 2010 18:49:34 +0100 Subject: [PATCH] Check for service and use it if it's there Based on Richard's two patches for the Ubuntu build.
* appliance: Print uptime.Richard Jones2009-11-181-2/+4
| | | | | Print the uptime just before the init script runs the daemon, so we have a good idea of how long the kernel boot + init script takes to run.
* init: Check that start_udev succeededMatthew Booth2009-10-211-2/+2
| | | | | | | If start_udev fails for any reason, notice and fall through to manual /dev creation. Patch from Charles Duffy <charles@dyfis.net>
* Add 'virt-rescue' command.Richard Jones2009-09-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This command runs a "rescue appliance" against a virtual machine or disk image. This is useful for making ad-hoc interactive changes to virtual machines. $ virt-rescue --ro /dev/vg_trick/F11x64 Welcome to virt-rescue, the libguestfs rescue shell. Note: The contents of / are the rescue appliance. You have to mount the guest's partitions under /sysroot before you will be able to examine them. bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell ><rescue> mount /dev/vg_f11x64/lv_root /sysroot EXT4-fs (dm-0): barriers enabled kjournald2 starting: pid 269, dev dm-0:8, commit interval 5 seconds EXT4-fs (dm-0): internal journal on dm-0:8 EXT4-fs (dm-0): delayed allocation enabled EXT4-fs: file extents enabled EXT4-fs: mballoc enabled EXT4-fs (dm-0): mounted filesystem with ordered data mode ><rescue> ls /sysroot/ bin dev home lib64 media opt root selinux sys usr boot etc lib lost+found mnt proc sbin srv tmp var ><rescue> exit
* Tidy up appliance rescue code.Richard Jones2009-09-231-3/+7
| | | | | The appliance shouldn't run the daemon after we leave the rescue shell. It should just exit instead.
* If using SELinux, mount /selinux in the appliance.Richard Jones2009-08-121-0/+4
| | | | | | If selinux=1 on the Linux kernel command line, then we mount /selinux in the appliance. We will also bind-mount this directory into guests when we run commands.
* Add contents of /proc/mounts to the debugging information.Richard Jones2009-08-111-0/+1
|
* appliance: More debug added to /init.Richard Jones2009-08-061-0/+2
|
* appliance: Include more debug output in the /init script.Richard Jones2009-08-061-5/+12
| | | | | Output more debugging information from this script, to enhance the usefulness of LIBGUESTFS_DEBUG output.
* Improve virtio-blk performance (RHBZ#509383).Richard W.M. Jones2009-07-021-0/+3
|
* unconditionally load dm moduleGuido Günther2009-07-021-1/+1
| | | | needed for device mapper (LVM)
* Use udev if available (Guido Gunter).Guido Günther2009-06-301-19/+28
| | | | Added support for Fedora's udev (Richard Jones).
* Add whitespace to the init script (no functional change).Richard Jones2009-06-221-1/+10
|
* Issue MAKEDEV commands in a loop (RHBZ#507374).Richard Jones2009-06-221-2/+6
|
* Move init script into a separate file.Richard W.M. Jones2009-06-191-0/+28