mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6eb3487673 |
No files matched your search
+3
-3
@@ -107,13 +107,13 @@
|
|||||||
lvm_type = "mirror";
|
lvm_type = "mirror";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "exfat";
|
||||||
mountpoint = "/ext4_on_lvm";
|
mountpoint = "/exfat_on_lvm";
|
||||||
mountOptions = [
|
mountOptions = [
|
||||||
"defaults"
|
"defaults"
|
||||||
];
|
];
|
||||||
postMountHook = ''
|
postMountHook = ''
|
||||||
touch /mnt/ext4_on_lvm/file-from-postMountHook
|
touch /mnt/exfat_on_lvm/file-from-postMountHook
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -106,7 +106,6 @@
|
|||||||
pkgs.gnugrep
|
pkgs.gnugrep
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
# TODO add many more
|
|
||||||
if (config.format == "xfs") then
|
if (config.format == "xfs") then
|
||||||
[ pkgs.xfsprogs ]
|
[ pkgs.xfsprogs ]
|
||||||
else if (config.format == "btrfs") then
|
else if (config.format == "btrfs") then
|
||||||
@@ -123,6 +122,8 @@
|
|||||||
[ pkgs.bcachefs-tools ]
|
[ pkgs.bcachefs-tools ]
|
||||||
else if (config.format == "f2fs") then
|
else if (config.format == "f2fs") then
|
||||||
[ pkgs.f2fs-tools ]
|
[ pkgs.f2fs-tools ]
|
||||||
|
else if (config.format == "exfat") then
|
||||||
|
[ pkgs.exfatprogs ]
|
||||||
else
|
else
|
||||||
[ ]
|
[ ]
|
||||||
);
|
);
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ diskoLib.testLib.makeDiskoTest {
|
|||||||
machine.succeed("mountpoint /zfs_fs");
|
machine.succeed("mountpoint /zfs_fs");
|
||||||
machine.succeed("mountpoint /zfs_legacy_fs");
|
machine.succeed("mountpoint /zfs_legacy_fs");
|
||||||
machine.succeed("mountpoint /ext4onzfs");
|
machine.succeed("mountpoint /ext4onzfs");
|
||||||
machine.succeed("mountpoint /ext4_on_lvm");
|
machine.succeed("mountpoint /exfat_on_lvm");
|
||||||
'';
|
'';
|
||||||
extraSystemConfig = {
|
extraSystemConfig = {
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
+2
-2
@@ -19,10 +19,10 @@ diskoLib.testLib.makeDiskoTest {
|
|||||||
machine.succeed("mountpoint /zfs_fs");
|
machine.succeed("mountpoint /zfs_fs");
|
||||||
machine.succeed("mountpoint /zfs_legacy_fs");
|
machine.succeed("mountpoint /zfs_legacy_fs");
|
||||||
machine.succeed("mountpoint /ext4onzfs");
|
machine.succeed("mountpoint /ext4onzfs");
|
||||||
machine.succeed("mountpoint /ext4_on_lvm");
|
machine.succeed("mountpoint /exfat_on_lvm");
|
||||||
|
|
||||||
|
|
||||||
machine.succeed("test -e /ext4_on_lvm/file-from-postMountHook");
|
machine.succeed("test -e /exfat_on_lvm/file-from-postMountHook");
|
||||||
'';
|
'';
|
||||||
extraInstallerConfig = {
|
extraInstallerConfig = {
|
||||||
boot.kernelModules = [
|
boot.kernelModules = [
|
||||||
|
|||||||
Reference in new issue
Block a user