| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
This means "the device that holds /etc/fstab", so map it correctly.
This fixes support for ttylinux and also some other guests that use
/dev/root instead of a real device name.
(cherry picked from commit 917f947590c92318fee2545ba88245d0de012e31)
|
|
|
|
|
|
|
|
|
| |
This also improves the documentation for this call, pointing out
several pitfalls in using it.
This unfortunately breaks existing callers that might use
guestfs_grub_install without checking for this new group.
(cherry picked from commit 99624d29226ece1abbbdd921183b360f5f80de91)
|
|
|
|
| |
(cherry picked from commit bddde7799b80b8292879634548c3c92a3cc1c044)
|
|
|
|
| |
(cherry picked from commit cda7fa973cbdd5fc4ad3974dcc6b5ea02ec6bb44)
|
|
|
|
|
|
|
| |
We could sometimes hit the 120 second timeout, eg. if the appliance
needed to be rebuilt and the machine was very slow and/or under heavy
I/O load. 10 minutes should be enough for any reasonable situation.
(cherry picked from commit 912284b02e28bd63bdf3397ef841b9782adfd2cd)
|
|
|
|
| |
(cherry picked from commit 95136b149212b92e87d0c9badb7d6849a084ed4d)
|
|
|
|
| |
(cherry picked from commit c7b88da039725ecd0d1d826b112bc69b518d4c78)
|
|
|
|
| |
(cherry picked from commit 7c521c7211d61a1bac46c155de1f4d3e8b60b3d7)
|
|
|
|
| |
(cherry picked from commit cbef2ffb0432756822cd2b02a305384f814e9b50)
|
|
|
|
| |
(cherry picked from commit b3f1457fddd19b1e540866fa01c665aeb371cb44)
|
| |
|
|
|
|
|
|
|
| |
The guestfs_ll command currently lists files in the appliance if you
prefix filenames with "/..". However this is a bug, not a feature,
and we should not be testing it.
(cherry picked from commit 8ab2b85b2a67270b8cc5a91bb62a70c84cd6a02c)
|
|
|
|
| |
(cherry picked from commit 8928de32d391e3ad4dd98bb27472c27bb8bc38ac)
|
|
|
|
| |
(cherry picked from commit 1d134301fc4d05338d09517abc978d0a90d82e09)
|
|
|
|
|
| |
This is just code motion.
(cherry picked from commit 73be6db9bf1c0ae96262a5f4fa9328bb4e648637)
|
|
|
|
|
| |
Ubuntu 10.04 LTS packages don't create /sys.
(cherry picked from commit 5b012024c49672cc69635ff01f9b9e4f87de1c65)
|
|
|
|
| |
(cherry picked from commit 085a56690611980f438e8af2eb47ebb411465775)
|
| |
|
|
|
|
| |
(cherry picked from commit baefb8225c8cbde56a1637c17af5c0965a81060e)
|
|
|
|
| |
(cherry picked from commit f0f3e1621180724e0a907a30ff5dea9695ddead0)
|
|
|
|
| |
(cherry picked from commit ceb3a57f67f33b33c1f6cafdd0ef81808273f0c0)
|
|
|
|
|
|
|
|
|
| |
Use virt-resize --machine-readable to print a list of facts about what
this version of virt-resize supports.
This includes parts of commit 09a7545649e6cac0de2c4421cb64b659164174ee
from the development branch, but doesn't include the machine-readable
progress bar.
|
|
|
|
|
| |
This library could now be called from other virt tools.
(cherry picked from commit 6146412f06c2f6f33c3ea7d571f16d4fe71dddb2)
|
|
|
|
| |
(cherry picked from commit 0bd055316f8581f4da33b039e33d5f61cc00294c)
|
|
|
|
| |
(cherry picked from commit 1a4f1df77eecee053eaae35d5544f151d37342e2)
|
|
|
|
| |
(cherry picked from commit 675f336319058fdbaf11ee004968b4543a5a9815)
|
|
|
|
| |
(cherry picked from commit 0cd5b9ac15c62eb570ec74d19b4aebde4990fd82)
|
|
|
|
| |
(cherry picked from commit 54911bdd325393d1f7f2861f298463c364b45469)
|
|
|
|
|
|
|
|
|
|
|
| |
We partitioned the disk, and then tried to create a PV on the whole
disk. LVM gave the error:
Device /dev/vda not found (or ignored by filtering).
It is unclear how this bug persisted for so long. It might be due to
a change in LVM.
(cherry picked from commit 4fb3b23fb69e4274f434f9258e38f185426298f7)
|
|
|
|
| |
(cherry picked from commit ce18be33cd5279a8d4120eedd037400c275585c0)
|
|
|
|
|
|
| |
msg_flags was not being initialized and would have been passed to
sendmsg with a random value.
(cherry picked from commit a31ac8fc32297cc9185fd20a5578d2bc81cc1bce)
|
|
|
|
| |
(cherry picked from commit c38cb92ec478c4dca83e4d38963720f463d52314)
|
|
|
|
| |
(cherry picked from commit b2edcbe1b9c9d161e96cb56d0efd944e84d84526)
|
|
|
|
|
| |
pclose can return > 0 when the status of the command was non-zero.
(cherry picked from commit 631faad97171d7c1238b2e413c663cf61476f440)
|
|
|
|
|
|
| |
Note that errno is probably not set to a useful value here, so there
is not much point recording it.
(cherry picked from commit f15961911316460f7d45342d63c2d784a483f0d1)
|
|
|
|
|
| |
In particular pclose returns a status > 0 if the command fails.
(cherry picked from commit a24652c7b27e8494268ccb6c9a5a2e5541ba5efd)
|
|
|
|
| |
(cherry picked from commit 2ace9be4cd69e84cd88e5b0fd74de861a4973c91)
|
|
|
|
|
|
| |
This refactors the code in test_qemu slightly to ensure that
FILE *fp is not leaked on error paths.
(cherry picked from commit 08e77ad8cb4e8ac70d4217ebd5d236eba81645b5)
|
|
|
|
| |
(cherry picked from commit fa44536b0ff12102c72ae0337e51d272f0fc2353)
|
|
|
|
|
|
|
|
| |
errno is pretty much random on the error path back from guestfs_launch
so there is nothing useful to be gained by checking it.
We could do with a better way to detect if appliance launch failed.
(cherry picked from commit 00fef9eed6a53e10a975814beef775483ff0b3dd)
|
|
|
|
|
| |
We expect guestfs_launch to fail in this program.
(cherry picked from commit 9bab154d48e367702b65852c3c822341b474ffd2)
|
|
|
|
| |
(cherry picked from commit 4c76aaa391d591c5917a06b0277fb9eb7d6d790f)
|
|
|
|
| |
(cherry picked from commit ca727deac186981f4d9784696324c8f3af79f9e5)
|
|
|
|
|
|
|
|
| |
Remove the old top-level autobuild.sh that confused a lot
of people.
Add an autobuild.sh script that builds from the latest tarball.
(cherry picked from commit 6375aede61d57422ad82f4941693493c07b78aa2)
|
|
|
|
|
|
|
| |
Intended use in Fedora and RHEL is to encode the release
string, eg.
./configure [...] --with-extra="-%{release}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There is another case where downloads of small files could fail if the
library side (writer) fails. In this case the library would send back
a cancellation, but it would be received after the daemon had finished
sending the whole file (because the file is small enough). The daemon
would reenter the main loop and immediately get an unexpected cancel
message, causing the daemon to die.
This commit also makes test-cancellation-download-librarycancels.sh
more robust. We use Monte-Carlo testing with a range of file sizes.
Small file sizes should trigger the error case.
(cherry picked from commit e4cba8f2b1a68e7361ce342ff659cccb0490446e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The default event handler in libguestfs was simply writing all debug
output directly to stderr. However if the output contains
non-printable characters such as terminal control codes then these
would also be sent directly.
With newer SeaBIOS there is a lame attempt to implement a splash
screen using terminal control codes, thus when libguestfs tries to
display debugging output it would cause the screen to clear and debug
output to be lost.
This commit causes all non-printing characters to be escaped.
(\n and \r characters from the appliance are treated somewhat
specially).
Furthermore, instead of using write(2), use buffered stderr calls.
(cherry picked from commit 06019bc82e107f7715ebc59e491610e06dad1e39)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This function was used to print the qemu and
febootstrap-supermin-helper command lines.
Unfortunately in the qemu case it was used incorrectly: it called the
internal debug function (ie. event API callback) from the forked qemu
subprocess, which meant that higher level event callbacks might have
been invoked from the child process.
To fix this, convert the qemu case into a new function called
print_qemu_command line which just prints the command line directly to
stderr. This is called after stderr has been redirected into the pipe
to the main process. Thus the qemu command line will be marshalled
into the event API along with other qemu and appliance output.
After fixing this, only one use of guestfs___print_timestamped_argv
remained, for printing the febootstrap-supermin-helper command line.
This is converted to a local function print_febootstrap_command_line.
Also print_febootstrap_command_line is now called before we fork
febootstrap-supermin-helper, so that messages no longer overlap.
(cherry picked from commit 635af5be04265f845186b40e9a9fe7b102ad6909)
|
|
|
|
|
|
|
|
| |
./run can now be run in a separate build directory. Since some files
needed in the image checks are found in the source tree (but not the
build tree), the source tree location is passed to make-*-img.sh via
an environment variable.
(cherry picked from commit 70c033998e0e721dc4f9eb2a20348098b259752c)
|
|
|
|
|
| |
This updates commit 3064277680ad11f887691646d0fa17bb35f38c19.
(cherry picked from commit 85efbc6aa70d522af066a38fd1aae05b790c46d3)
|