diff -Nru unattended-upgrades-0.90ubuntu0.8/debian/changelog unattended-upgrades-0.90ubuntu0.9/debian/changelog --- unattended-upgrades-0.90ubuntu0.8/debian/changelog 2017-09-18 20:36:57.000000000 +0000 +++ unattended-upgrades-0.90ubuntu0.9/debian/changelog 2017-12-19 22:51:05.000000000 +0000 @@ -1,3 +1,9 @@ +unattended-upgrades (0.90ubuntu0.9) xenial; urgency=medium + + * unattended-upgrade: Do not reboot during a dry-run. (LP: #1269177) + + -- Brian Murray Tue, 19 Dec 2017 14:51:05 -0800 + unattended-upgrades (0.90ubuntu0.8) xenial; urgency=medium * Do not mark packages for deletion / autoremoval if unattended-upgrades is diff -Nru unattended-upgrades-0.90ubuntu0.8/test/unattended_upgrade.py unattended-upgrades-0.90ubuntu0.9/test/unattended_upgrade.py --- unattended-upgrades-0.90ubuntu0.8/test/unattended_upgrade.py 2017-09-18 20:36:57.000000000 +0000 +++ unattended-upgrades-0.90ubuntu0.9/test/unattended_upgrade.py 2017-12-19 22:50:59.000000000 +0000 @@ -1338,7 +1338,9 @@ write_stamp_file() # check if we couldn't reboot on previous run because # a user was logged-in at this time - reboot_if_requested_and_needed() + # never reboot during a dry run + if not options.dry_run: + reboot_if_requested_and_needed() return # check if its configured for install on shutdown, if so, the diff -Nru unattended-upgrades-0.90ubuntu0.8/unattended-upgrade unattended-upgrades-0.90ubuntu0.9/unattended-upgrade --- unattended-upgrades-0.90ubuntu0.8/unattended-upgrade 2017-09-18 20:36:57.000000000 +0000 +++ unattended-upgrades-0.90ubuntu0.9/unattended-upgrade 2017-12-19 22:50:59.000000000 +0000 @@ -1338,7 +1338,9 @@ write_stamp_file() # check if we couldn't reboot on previous run because # a user was logged-in at this time - reboot_if_requested_and_needed() + # never reboot during a dry run + if not options.dry_run: + reboot_if_requested_and_needed() return # check if its configured for install on shutdown, if so, the