Bug#1040183: [Pkg-zfsonlinux-devel] Bug#1040183: zfs-initramfs: snapshots for rootfs mounted in /root/.zfs/snapshot

2024-01-12 Thread наб
On Fri, Jan 12, 2024 at 07:12:34AM +, 陈 晟祺 wrote:
> Seems .zfs/ of you home dataset goes wrongly to /.zfs, which is really weird,
> since they are mounted in the different stage of booting sequence.
> I don’t think it is the same problem as this report.
> You might want to create a new report (and to upstream).
Forwarded to https://github.com/openzfs/zfs/issues/15766.


signature.asc
Description: PGP signature


Bug#1040183: [Pkg-zfsonlinux-devel] Bug#1040183: zfs-initramfs: snapshots for rootfs mounted in /root/.zfs/snapshot

2024-01-11 Thread 陈 晟祺
Control: notfound -1 2.2.2-3

Hi,

> Thanks for testing. The fix actually got merged into 2.2.12 and master,
> but not released with 2.2.0 till now. We will keep tracking it, and (probably)
> backport the patch in the next debian release.
> 

Sorry for the confusion. The fixes has landed in 2.1.12 and remains in all 
later versions.
I tested on my 2.2.2-3 and cannot reproduce your problem.

> nabijaczleweli@chrust:~/code/babfig/i3status.rs$ findmnt
>  TARGET  SOURCE 
> FSTYPE OPTIONS
>  /   chrust-zootzfs   
>  rw,relatime,xattr,posixacl,casesensitive
>  ├─/home chrust-zoot/home   zfs   
>  rw,relatime,xattr,posixacl,casesensitive
>  │ └─/home/nabijaczlewelichrust-zoot/home/nabijaczlewelizfs   
>  rw,relatime,xattr,posixacl,casesensitive
>  └─/.zfs/snapshot/pre-keymap chrust-zoot/home/nabijaczleweli@pre-keymap zfs   
>  ro,relatime,xattr,posixacl,casesensitive


Seems .zfs/ of you home dataset goes wrongly to /.zfs, which is really weird,
since they are mounted in the different stage of booting sequence.
I don’t think it is the same problem as this report.
You might want to create a new report (and to upstream).

Thanks,
Shengqi Chen



Bug#1040183: [Pkg-zfsonlinux-devel] Bug#1040183: zfs-initramfs: snapshots for rootfs mounted in /root/.zfs/snapshot

2024-01-11 Thread 陈 晟祺
Control: fixed -1 2.1.12-1
Control: forwarded -1 https://github.com/openzfs/zfs/pull/14908

Hi,

> 2024年1月12日 04:25,наб  写道:
> 
> Control: found -1 2.2.2-3
> 
> The upstream issue referenced in the OP is still open, and you can still
> repro this error on 2.2.2-3 and 6.6.9-amd64:

Thanks for testing. The fix actually got merged into 2.2.12 and master,
but not released with 2.2.0 till now. We will keep tracking it, and (probably)
backport the patch in the next debian release.

Thanks,
Shengqi Chen



Bug#1040183: zfs-initramfs: snapshots for rootfs mounted in /root/.zfs/snapshot

2024-01-11 Thread наб
Control: found -1 2.2.2-3

The upstream issue referenced in the OP is still open, and you can still
repro this error on 2.2.2-3 and 6.6.9-amd64:
  nabijaczleweli@chrust:~$ ls .zfs/snapshot/pre-keymap/
  ls: cannot access '/home/nabijaczleweli/.zfs/snapshot/pre-keymap/': Too many 
levels of symbolic links
  nabijaczleweli@chrust:~$ ls /.zfs/snapshot/pre-keymap/
  audio-script.tar  cros-keyboard-map  foreign.nabijaczleweli.xyz  typescript  
xev.log
  nabijaczleweli@chrust:~/code/babfig/i3status.rs$ findmnt
  TARGET  SOURCE FSTYPE 
OPTIONS
  /   chrust-zootzfs
rw,relatime,xattr,posixacl,casesensitive
  ├─/home chrust-zoot/home   zfs
rw,relatime,xattr,posixacl,casesensitive
  │ └─/home/nabijaczlewelichrust-zoot/home/nabijaczlewelizfs
rw,relatime,xattr,posixacl,casesensitive
  └─/.zfs/snapshot/pre-keymap chrust-zoot/home/nabijaczleweli@pre-keymap zfs
ro,relatime,xattr,posixacl,casesensitive
  $ uname -a
  Linux chrust 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.9-1 (2024-01-01) 
x86_64 GNU/Linux
  $ zfs --version
  zfs-2.2.2-3
  zfs-kmod-2.2.2-3
with the added spice of c-z/h/n@p-k instead of c-z@p-k being mounted.


signature.asc
Description: PGP signature


Bug#1040183: zfs-initramfs: snapshots for rootfs mounted in /root/.zfs/snapshot

2023-07-02 Thread Richard van den Berg
Package: zfs-initramfs
Version: 2.1.11-1
Severity: normal

I have ZFS setup with rootfs which is mounted at boot in /root by initramfs.
This causes the ZFS snapshots to be mounted in /root/.zfs/snapshot instead
of /.zfs/snapshot

Accessing any snapshot in /.zfs/snapshot gives this error:

Too many levels of symbolic links

The root cause is explained at 
https://github.com/openzfs/zfs/issues/9461#issuecomment-1376162949

-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to 
C.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zfs-initramfs depends on:
ii  busybox 1:1.35.0-4+b3
ii  initramfs-tools 0.142
ii  zfs-dkms [zfs-modules]  2.1.11-1
ii  zfsutils-linux  2.1.11-1

zfs-initramfs recommends no packages.

zfs-initramfs suggests no packages.

-- no debconf information