42321c0598ed3615991dcd1c6d6441d2648e33de
4 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
6 [[ $EUID == 0 ]] ||
exec sudo
-E "${BASH_SOURCE[0]}" "$@"
8 # used to have more than one, leaving commented in case we do
11 if [[ -e /etc
/schroot
/chroot.d
/$n.conf
]]; then
13 schroot
-c $n -- apt-get
-y update
14 schroot
-c $n -- apt-get
-y dist-upgrade
--purge --auto-remove
18 # if we haven't upgraded yet
19 if [[ ! -d /mnt
/boot
/debianbullseye_bootstrap
]]; then
23 dev
=$
(awk '$2 == "/mnt/boot" {print $1}' /etc
/mtab
)
27 mkdir
-p /mnt
/tmptimer
28 if ! mountpoint
/mnt
/tmptimer
&>/dev
/null
; then
29 mount
-o subvol
=debianbullseye_bootstrap
$dev /mnt
/tmptimer
32 for d
in dev proc sys dev
/pts
; do
34 if ! mountpoint
$d &>/dev
/null
; then
38 chroot . apt-get
-y update
39 chroot . apt-get
-y dist-upgrade
--purge --auto-remove
41 for d
in dev
/pts dev proc sys
; do
42 if mountpoint
$d &>/dev
/null
; then