mkusb can modify the apt settings for persistent live drives, but that
is to avoid unattended upgrades, and it changes the visual status seen
at the 'Updates' tab in 'Software & Updates'. Otherwise mkusb clones the
iso file to a partition and extracts some boot stuff (for grub booting)
to [another] FAT partition. And for this test, I did *not* let mkusb
tamper with any of the files in /etc/apt/apt.conf.d, so I declined the
offer in the pop up window, where it can be selected.


When I made the fix in mkusb for this problem, I inspected the files in
the directory


with the settings 'when there are security updates:' for

- Download and install automatically (which causes unattended upgrades) and
- Display automatically (which does not cause unattended upgrades).

After that I simply made mkusb change the files to be exactly like the
were for 'Display immediately'. I let mkusb write to corresponding files
in the casper-rw partition "$targ1"

And it works when I test it in Xenial and Yakkety. There is no need for
this fix in the previous versions.

from the mkusb shell-script:
# change: 'Download and install automatically' to 'Display immediately'

if $chk_upgrd
 /bin/echo -e \
 "$inversvid set security upgrade action to 'Display immediately' $resetvid"
 umount "$targ1" 2>&1
 mount "${tu}5" "$targ1" 2>&1
 mkdir -p "$targ1"/upper/etc/apt/apt.conf.d/
 echo 'APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";' \
 > "$targ1"/upper/etc/apt/apt.conf.d/10periodic
 cp -p "$targ1"/upper/etc/apt/apt.conf.d/10periodic \
 /bin/echo -e "$inversvid keep current security upgrade settings $resetvid"

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  Unattended upgrades can break persistent live media

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to