diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2021-06-18 22:19:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 22:19:16 +0200 |
commit | a4cb90bdbd57eabb7ff93d179e687873ac3fafcb (patch) | |
tree | 341fc3e8fbbe63c4c65736bce687c0123d21d372 /nixos/tests/zfs.nix | |
parent | 86b1feefbdd51d57b5ca5be0050d992126dee411 (diff) | |
download | nixpkgs-a4cb90bdbd57eabb7ff93d179e687873ac3fafcb.tar nixpkgs-a4cb90bdbd57eabb7ff93d179e687873ac3fafcb.tar.gz nixpkgs-a4cb90bdbd57eabb7ff93d179e687873ac3fafcb.tar.bz2 nixpkgs-a4cb90bdbd57eabb7ff93d179e687873ac3fafcb.tar.lz nixpkgs-a4cb90bdbd57eabb7ff93d179e687873ac3fafcb.tar.xz nixpkgs-a4cb90bdbd57eabb7ff93d179e687873ac3fafcb.tar.zst nixpkgs-a4cb90bdbd57eabb7ff93d179e687873ac3fafcb.zip |
Update nixos/tests/zfs.nix
Co-authored-by: jnetod <49963580+jnetod@users.noreply.github.com>
Diffstat (limited to 'nixos/tests/zfs.nix')
-rw-r--r-- | nixos/tests/zfs.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nixos/tests/zfs.nix b/nixos/tests/zfs.nix index 5a6138c68d4..d25090403e5 100644 --- a/nixos/tests/zfs.nix +++ b/nixos/tests/zfs.nix @@ -74,10 +74,15 @@ let "udevadm settle", "zpool create rpool /dev/vdb1", "zfs create -o mountpoint=legacy rpool/root", + # shared datasets cannot have legacy mountpoint + "zfs create rpool/shared_smb", "mount -t zfs rpool/root /tmp/mnt", "udevadm settle", - "zfs set sharesmb=on rpool/root", - "smbclient -NL localhost", + # wait for samba services + "systemctl is-system-running --wait", + "zfs set sharesmb=on rpool/shared_smb", + "zfs share rpool/shared_smb", + "smbclient -gNL localhost | grep rpool_shared_smb", "umount /tmp/mnt", "zpool destroy rpool", "udevadm settle", |