ipfs: disable autoMigrate option for now
This commit is contained in:
parent
b76f9d7a44
commit
f46616db5a
@ -7,7 +7,7 @@ let
|
|||||||
|
|
||||||
ipfsFlags = toString ([
|
ipfsFlags = toString ([
|
||||||
(optionalString cfg.autoMount "--mount")
|
(optionalString cfg.autoMount "--mount")
|
||||||
(optionalString cfg.autoMigrate "--migrate")
|
#(optionalString cfg.autoMigrate "--migrate")
|
||||||
(optionalString cfg.enableGC "--enable-gc")
|
(optionalString cfg.enableGC "--enable-gc")
|
||||||
(optionalString (cfg.serviceFdlimit != null) "--manage-fdlimit=false")
|
(optionalString (cfg.serviceFdlimit != null) "--manage-fdlimit=false")
|
||||||
(optionalString (cfg.defaultMode == "offline") "--offline")
|
(optionalString (cfg.defaultMode == "offline") "--offline")
|
||||||
@ -36,6 +36,7 @@ let
|
|||||||
|
|
||||||
baseService = recursiveUpdate commonEnv {
|
baseService = recursiveUpdate commonEnv {
|
||||||
wants = [ "ipfs-init.service" ];
|
wants = [ "ipfs-init.service" ];
|
||||||
|
# NB: migration must be performed prior to pre-start, else we get the failure message!
|
||||||
preStart = ''
|
preStart = ''
|
||||||
ipfs repo fsck # workaround for BUG #4212 (https://github.com/ipfs/go-ipfs/issues/4214)
|
ipfs repo fsck # workaround for BUG #4212 (https://github.com/ipfs/go-ipfs/issues/4214)
|
||||||
ipfs --local config Addresses.API ${cfg.apiAddress}
|
ipfs --local config Addresses.API ${cfg.apiAddress}
|
||||||
@ -97,11 +98,17 @@ in {
|
|||||||
description = "systemd service that is enabled by default";
|
description = "systemd service that is enabled by default";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
autoMigrate = mkOption {
|
autoMigrate = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = "Whether IPFS should try to migrate the file system automatically";
|
description = ''
|
||||||
|
Whether IPFS should try to migrate the file system automatically.
|
||||||
|
|
||||||
|
The daemon will need to be able to download a binary from https://ipfs.io to perform the migration.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
autoMount = mkOption {
|
autoMount = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user