]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - debian/scripts/misc/update-zfs.sh
3 # Update spl/zfs from the Ubuntu archive. You will have to manually check
4 # to see if the version has been updated.
6 SPL_MAJOR_VER
=${_SPL_MAJOR_VER:-0.6.5.11}
7 SPL_MINOR_VER
=${_SPL_MINOR_VER:-0ubuntu1}
8 SPL_DKMS
=${_SPL_DKMS:-http://archive.ubuntu.com/ubuntu/pool/universe/s/spl-linux/spl-dkms_${SPL_MAJOR_VER}-${SPL_MINOR_VER}_all.deb}
10 ZFS_MAJOR_VER
=${_ZFS_MAJOR_VER:-0.6.5.11}
11 ZFS_MINOR_VER
=${_ZFS_MINOR_VER:-0ubuntu1}
12 ZFS_DKMS
=${_ZFS_DKMS:-http://archive.ubuntu.com/ubuntu/pool/universe/z/zfs-linux/zfs-dkms_${ZFS_MAJOR_VER}-${ZFS_MINOR_VER}_all.deb}
14 function update_from_archive
{
20 rm -rf ${DEST_DIR}.tmp
21 wget
-O ${DEST_DIR}.deb
${URL}
22 dpkg
-x ${DEST_DIR}.deb
${DEST_DIR}.tmp
24 rsync
-aL --delete ${DEST_DIR}.tmp/usr/src/${DEST_DIR}-${VER}*/ ${DEST_DIR}/
25 rm -rf ${DEST_DIR}.deb
${DEST_DIR}.tmp
26 find ${DEST_DIR} -type f |
while read f
;do git add
-f $f;done
29 update_from_archive
${SPL_DKMS} spl
${SPL_MAJOR_VER}
30 update_from_archive
${ZFS_DKMS} zfs
${ZFS_MAJOR_VER}
33 git commit
-s -m"UBUNTU: SAUCE: (noup) Update spl to ${SPL_MAJOR_VER}-${SPL_MINOR_VER}, zfs to ${ZFS_MAJOR_VER}-${ZFS_MINOR_VER}"