File: sbuild-shell-bullseye-to-bookworm.sh

package info (click to toggle)
zfs-linux 2.3.2-2
  • links: PTS, VCS
  • area: contrib
  • in suites: sid, trixie
  • size: 71,496 kB
  • sloc: ansic: 392,648; sh: 67,208; asm: 47,693; python: 8,160; makefile: 5,100; perl: 839; sed: 41
file content (24 lines) | stat: -rw-r--r-- 928 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This scripts aims to test the ZFS upgrade from bullseye -> bookworm
# run the script within sbuild-shell environment, e.g.
#
#   $ sudo sbuild-shell chroot:bullseye-amd64-sbuild
#
# Note, remember to set union-type to "none" for the specified schroot env,
# or usrmerge will cause lots of trouble.

# install zfs from stable
echo "deb http://deb.debian.org/debian bullseye main contrib non-free" > /etc/apt/sources.list
apt update -y
apt upgrade -y
apt install eatmydata -y
eatmydata -- apt install vim fish -y
eatmydata -- apt install linux-image-amd64 linux-headers-amd64 linux-libc-dev dkms -y
eatmydata -- apt install zfsutils-linux -y
find /usr/lib/modules | grep zfs

# upgrade to unstable (bookworm)
echo "deb http://deb.debian.org/debian unstable main contrib non-free" > /etc/apt/sources.list
eatmydata -- apt update -y
eatmydata -- apt dist-upgrade -y
eatmydata -- apt autoremove -y
find /usr/lib/modules | grep zfs