Using a build from current lp:ubuntu/plymouth that has steve's fix for bug 1160079 inside it, I no longer am losing data written to the console!
I've tested this in a trusty kvm local image.
disk-patched.img had the new debs installed
disk-unpatched.img did not.
both images had https://bugs.freedesktop.org/attachment.cgi?id=89759 run on them (so the logging init-wrapper was in place).
$ cat go-test.txt
LOG="out.log"
rm -f "$LOG"
i=0
while i=$(($i+1)) && [ $i -le 10 ]; do
echo "---- $(date) $i ----" >> "$LOG"
for r in patched unpatched; do
qemu-img create -f qcow2 -b disk1-$r.img disk1.img
slog=$(printf "serial-%s-%02d.log" "$r" "$i")
echo "---- $(date) $i $r ----" >> "$LOG"
kvm -net nic -net user,hostfwd=tcp::2222-:22 \
-drive file=disk1.img,if=virtio -drive file=seed.img,if=virtio \
-serial "file:$slog" -vga none -nographic
done
done
Using a build from current lp:ubuntu/plymouth that has steve's fix for bug 1160079 inside it, I no longer am losing data written to the console!
I've tested this in a trusty kvm local image. /bugs.freedeskt op.org/ attachment. cgi?id= 89759 run on them (so the logging init-wrapper was in place).
disk-patched.img had the new debs installed
disk-unpatched.img did not.
both images had https:/
$ cat go-test.txt %s-%02d. log" "$r" "$i") tcp::2222- :22 \ img,if= virtio -drive file=seed. img,if= virtio \
LOG="out.log"
rm -f "$LOG"
i=0
while i=$(($i+1)) && [ $i -le 10 ]; do
echo "---- $(date) $i ----" >> "$LOG"
for r in patched unpatched; do
qemu-img create -f qcow2 -b disk1-$r.img disk1.img
slog=$(printf "serial-
echo "---- $(date) $i $r ----" >> "$LOG"
kvm -net nic -net user,hostfwd=
-drive file=disk1.
-serial "file:$slog" -vga none -nographic
done
done
echo "--- $(date) FINISHED ---" >> "$LOG"
$ cat user-data
#cloud-config
password: passw0rd
chpasswd: { expire: False }
ssh_pwauth: True
power_state:
mode: poweroff
message: "Bye Bye"
$ for f in serial-*.log; do echo $f: $(grep "XX:" $f | wc -l); done patched- 01.log: 103 patched- 02.log: 103 patched- 03.log: 103 patched- 04.log: 103 patched- 05.log: 103 patched- 06.log: 103 patched- 07.log: 103 patched- 08.log: 103 patched- 09.log: 103 patched- 10.log: 103 unpatched- 01.log: 80 unpatched- 02.log: 82 unpatched- 03.log: 81 unpatched- 04.log: 80 unpatched- 05.log: 79 unpatched- 06.log: 84 unpatched- 07.log: 80 unpatched- 08.log: 83 unpatched- 09.log: 82 unpatched- 10.log: 82
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-
serial-