Merge pull request #410 from LebedevRI/dkms

Debian: split DKMS into separate binary package
This commit is contained in:
koverstreet 2025-09-17 21:59:49 -04:00 committed by GitHub
commit 2183399401
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 72 additions and 35 deletions

View File

@ -179,6 +179,7 @@ jobs:
tar -cf "$GITHUB_WORKSPACE/deb-bin/artifact-bin-${{ inputs.dist }}-${{ inputs.arch }}.tar" *
- name: Attest build artifact
timeout-minutes: 1
if: github.event_name != 'pull_request'
uses: actions/attest-build-provenance@v3
with:
subject-path: '${{ github.workspace }}/deb-bin'
@ -193,6 +194,7 @@ jobs:
compression-level: 0
- name: Attest uploaded build artifact
timeout-minutes: 1
if: github.event_name != 'pull_request'
uses: actions/attest-build-provenance@v3
with:
subject-name: artifact-bin-${{ inputs.dist }}-${{ inputs.arch }}.tar.zip

View File

@ -169,6 +169,7 @@ jobs:
tar -cf "$GITHUB_WORKSPACE/deb-src/artifact-src.tar" *
- name: Attest the source-only .deb package artifact
timeout-minutes: 1
if: github.event_name != 'pull_request'
uses: actions/attest-build-provenance@v3
with:
subject-path: '${{ github.workspace }}/deb-src'
@ -183,6 +184,7 @@ jobs:
compression-level: 0
- name: Attest the uploaded source-only .deb package artifact
timeout-minutes: 1
if: github.event_name != 'pull_request'
uses: actions/attest-build-provenance@v3
id: upload
with:

3
debian/bcachefs-kernel-dkms.install vendored Normal file
View File

@ -0,0 +1,3 @@
usr/share/initramfs-tools/hooks/bcachefs
usr/share/initramfs-tools/scripts/local-premount/bcachefs
usr/src/bcachefs-*

9
debian/bcachefs-tools.install vendored Normal file
View File

@ -0,0 +1,9 @@
usr/lib/udev/rules.d/64-bcachefs.rules
usr/sbin/bcachefs
usr/sbin/fsck.bcachefs
usr/sbin/fsck.fuse.bcachefs
usr/sbin/mkfs.bcachefs
usr/sbin/mkfs.fuse.bcachefs
usr/sbin/mount.bcachefs
usr/sbin/mount.fuse.bcachefs
usr/share/man/man8/bcachefs.8

View File

@ -1,14 +0,0 @@
#!/bin/sh
set -e
#DEBHELPER#
case "$1" in
configure)
if which update-initramfs >/dev/null; then
update-initramfs -u
fi
;;
esac

View File

@ -1,14 +0,0 @@
#!/bin/sh
set -e
#DEBHELPER#
case "$1" in
remove)
if which update-initramfs >/dev/null; then
update-initramfs -u
fi
;;
esac

View File

@ -1 +0,0 @@
activate update-initramfs

8
debian/changelog vendored
View File

@ -1,8 +1,14 @@
bcachefs-tools (1:1.31.1~1) unstable; urgency=medium
* Split DKMS into separate binary package
-- Roman Lebedev <lebedev.ri@gmail.com> Thu, 18 Sep 2025 03:01:17 +0300
bcachefs-tools (1:1.31.1) unstable; urgency=medium
* DKMS support
-- Kent Overstreet <kent.overstreet@linux.dev> Wed Sep 17 06:31:34 PM EDT 2025
-- Kent Overstreet <kent.overstreet@linux.dev> Wed, 17 Sep 2025 18:31:34 -0400
bcachefs-tools (1:1.31.0) unstable; urgency=medium

54
debian/control vendored
View File

@ -26,17 +26,61 @@ Build-Depends: debhelper-compat (= 13),
uuid-dev,
zlib1g-dev,
Homepage: https://bcachefs.org/
Vcs-Git: https://salsa.debian.org/debian/bcachefs-tools.git
Vcs-Browser: https://salsa.debian.org/debian/bcachefs-tools
Vcs-Git: git://evilpiepirate.org/bcachefs-tools.git
Vcs-Browser: https://evilpiepirate.org/git/bcachefs-tools.git
Package: bcachefs-tools
Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends}, python3:any
Recommends: initramfs-tools | linux-initramfs-tool
Recommends: bcachefs-kernel-dkms (= ${binary:Version}),
initramfs-tools | linux-initramfs-tool,
Breaks: bcachefs-kernel-dkms (<< ${binary:Version}),
bcachefs-kernel-dkms (>> ${binary:Version}),
Description: bcachefs userspace tools
Userspace tools for bcachefs, a modern copy on write, checksumming, multi
device filesystem.
.
Note: The current Debian kernels do not come with bcachefs support, you
will have to use your own kernel or one provided by a 3rd party that
contains bcachefs support.
will have to install bcachefs-kernel-dkms package or build your own kernel
or one provided by a 3rd party that contains bcachefs support.
Package: bcachefs-kernel-dkms
Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends},
initramfs-tools | linux-initramfs-tool,
linux-headers-amd64 [amd64],
linux-headers-arm64 [arm64],
Pre-Depends: bcachefs-tools (= ${binary:Version}),
Provides: bcachefs-kernel
Description: bcachefs kernel module DKMS source
"The COW filesystem for Linux that won't eat your data".
.
Bcachefs is an advanced new filesystem for Linux, with an emphasis
on reliability and robustness and the complete set of features
one would expect from a modern filesystem.
.
* Copy on write (COW) - like zfs
* Full data and metadata checksumming, for full data integrity:
the filesystem should always detect (and where possible,
recover from) damage; it should never return incorrect data.
* Multiple devices
* Replication
* Erasure coding (incomplete) High performance: doesn't fragment
your writes (like ZFS), no RAID hole
* Caching, data placement
* Compression
* Encryption
* Snapshots
* Nocow mode
* Reflink
* Extended attributes, ACLs, quotas
* Petabyte scalability
* Full online fsck, check and repair (in progress)
* Robustness and rock solid repair. Damage and breakage are a fact of life,
it's not a matter of if, but when. It doesn't matter what happened
to the filesystem: bad hardware, lightning strikes, an errant dd,
you can expect that bcachefs will repair the damage and keep going,
usually with no user intervention required.
.
It's the job of the filesystem to never lose your data:
anything that can be repaired, will be.