/usr/lib/update-notifier/cddistupgrader is in update-notifier-common 0.119ubuntu8.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/sh
#
CDROM_MOUNT="$1"
for d in "$CDROM_MOUNT"/dists/*/main/dist-upgrader/binary-all/; do
if [ -d "$d" ]; then
UPGRADER_DIR="$d"
break
fi
done
TAR=$(basename "$UPGRADER_DIR"/*.tar.gz)
CODENAME=${TAR%.tar.gz}
# get a tempdir
TMPDIR=$(mktemp -t -d distupgrade.XXXXXX)
cd $TMPDIR
# extract the tar
tar xzf "$UPGRADER_DIR"/"$TAR"
# apply any patches needed before running the upgrade
for apatch in /usr/share/update-notifier/uprader-patches/*.diff; do
if patch --dry-run < "$apatch"; then
patch < "$apatch"
fi
done
# run it
gksu -- "$TMPDIR"/"$CODENAME" --cdrom "$CDROM_MOUNT"
|