Merge pull request #7743 from cmatsuoka/core20-bootstrap-pt-reread
snap-bootstrap: force partition table operations
When acting on the disk we're currently using, sfdisk writes to the
partition table must be forced. Also letting sfdisk update the partition
table is not enough, partx -u must be used to force udev to create nodes
for the new partitions.
Merge pull request #7833 from anonymouse64/bugfix/hacking-md-nvidia-ubuntu
HACKING.md: add nvidia options to configure example
This is useful for beginners who may not know about the tricky mounting that we do in snap-confine to enable graphical applications to work correctly with drivers and libraries from the host's filesystem.
Without these options, if you have nvidia graphics and try to run graphical snap applications with your local version of snap-confine things will generally not work well.
Move the watchdog timeout to 2s to make the tests work in rpi
The limit of 1 second for the watchdog is not enough on some boards like
the pi2. Moving the timeout to 2 seconds it works much better.
See the error log
Dec 03 12:09:22 localhost systemd[1]: Started Service for snap
application test-snapd-service-watchdog.direct-watchdog-ok.
Dec 03 12:09:23 localhost systemd[1]:
snap.test-snapd-service-watchdog.direct-watchdog-ok.service: Watchdog
timeout (limit 1s)!
Dec 03 12:09:23 localhost systemd[1]:
snap.test-snapd-service-watchdog.direct-watchdog-ok.service: Killing
process 3021 (python3) with signal SIGABRT.
Dec 03 12:09:23 localhost systemd[1]:
snap.test-snapd-service-watchdog.direct-watchdog-ok.service: Main
process exited, code=killed, status=6/ABRT
Dec 03 12:09:23 localhost systemd[1]:
snap.test-snapd-service-watchdog.direct-watchdog-ok.service: Failed with
result 'watchdog'.
HACKING.md: add nvidia options to configure example
This is useful for beginners who may not know about the tricky mounting that we
do in snap-confine to enable graphical applications to work correctly with
drivers and libraries from the host's filesystem.
Without these options, if you have nvidia graphics and try to run graphical snap
applications with your local version of snap-confine things will generally not
work well.
UC now supports delta downloads, but note we don't run the -from-core variant of
this test, as on UC we are already effectively using the xdelta command from the
core snap since the core snap will be the boot base snap.