44 Commits

Author SHA1 Message Date
yo 69665fdcef BUGFIX: fstab comments made invalid format error 2023-11-09 19:16:53 +01:00
yo 44b877eae1 updateVersion now can be used on stopped jail 2023-08-06 14:50:32 +02:00
yo a3dd0a7aa2 Add creation of basejail (jail based on template, system in readonly, nullfs binded) 2023-08-06 11:15:49 +02:00
yo 6a8b022165 getJailFromArray filtering by type, add fileCopy, isFirstNetDhcp 2023-08-05 19:49:55 +02:00
yo bce37e6541 v0.36c: Moved and renamed writeConfigToDisk into utils.go 2023-07-23 15:52:21 +02:00
yo 881965e257 Add executeCommandWithStdinStdoutStderr 2023-07-23 15:11:29 +02:00
yo f9f1d48023 Add zfsDestroy & zfsGetDatasetByMountpoint functions, rename createZfsDataset to zfsCreateDataset 2023-07-09 13:40:40 +02:00
yo dc4213a8d5 v.0.34 : Jail names can be shortened 2023-07-09 10:38:00 +02:00
yo 7575da794e 0.33c : parallelize start/stop of jails up to gMaxThreads 2023-06-25 23:07:53 +02:00
yo 6f9bb504be Fix forever waiting on services not properly closing pipes at start 2023-06-10 14:12:53 +02:00
yo 9c18a83ee8 ExecuteCommandWithOutputToStdout 2022-11-20 20:16:23 +01:00
yo abaa4a11f9 Check if dataset exist, create dataset 2022-10-16 15:19:03 +02:00
yo 170dce31b3 getJailFromArray now support long names 2022-07-10 14:15:02 +02:00
yo 5b0de24508 executeCommand supports quoted arguments, getValueFromRunningConfig 2022-06-26 20:02:28 +02:00
yo 1462c383d3 Cosmetic rearrangement 2022-06-19 19:45:07 +02:00
yo 42e1085ad4 Fix disableRcKey bug when key do not exist 2022-06-19 19:14:58 +02:00
yo 4d8bf6e0d5 executeScript function 2022-06-19 17:43:48 +02:00
yo a7aaa11de6 Fix getJailFromArray: the returned reference was to a copy of the jail 2022-06-19 13:50:49 +02:00
yo c585678be9 create dynamic devfs ruleset from configured or default 2022-06-18 20:07:57 +02:00
yo 9218ffafe1 Add datastore to snapshots, force Datastore display when jail exist on multi datastores 2022-06-18 18:24:09 +02:00
yo 1c04f62ed8 Comments 2022-06-18 16:34:06 +02:00
yo 86e08ec0f7 Add datastore list, filter and sort, add snapshot sorting 2022-06-18 16:09:22 +02:00
yo 7356c0d3d0 gocage migrate now synchronize destination dataset after stoppoing jail 2022-06-18 11:09:06 +02:00
yo 542d2f96f6 zfsCopyIncremental to send/receive incremental snapshots 2022-06-05 18:42:20 +02:00
yo fb3ee07585 "gocage migrate jail -d destination_dataset" working for cold migrations 2022-06-05 14:09:55 +02:00
yo 249ab19173 getJailFromArray use name instead of internalName 2022-06-05 11:20:16 +02:00
yo bc92f29900 executeCommand now returns stdout and stderr combined in output 2022-06-04 22:28:38 +02:00
yo e4fc9c3a6c Some code reorg 2022-04-24 16:55:33 +02:00
yo 43f26d099f WIP on start, go fmt on * 2022-04-24 16:49:54 +02:00
yo f9ce3601df Convert setJailProperty to setStructFieldValue 2022-04-18 13:36:33 +02:00
yo e0f371693a Raise error if /etc/hostid not readable 2022-04-05 22:21:04 +02:00
yo 0f97270a6a BUGFIX on hostid reading : remove trailing \n 2022-04-05 21:43:11 +02:00
yo 0053fd6c8b WIP on rollback, started "gocage console", default values for jail properties to stay compatible with iocage 2022-04-05 20:58:11 +02:00
yo 966a3d57c1 Correctly display multiple jails snapshots 2022-04-04 20:10:42 +02:00
yo 7b34495cf6 displaySnapshotsFields is a copy of displayJailsFields to pretty display jails snapshots 2022-04-04 19:47:15 +02:00
yo 910be4ea31 Add gocage list snapshot myjail 2022-04-03 14:27:26 +02:00
yo 285229009f Add "gocage get all myjail" 2022-04-03 11:04:01 +02:00
yo da74456d6a Set property K for int type + write config to disk 2022-04-02 21:38:54 +02:00
yo f40db69b9d WIP: Implementing setJailProperty, add recursivity to getStructFieldValue 2022-04-02 21:15:06 +02:00
yo 239bcd4b95 WIP: set jail properties 2022-04-02 17:12:51 +02:00
yo bf20c815ce Moved some code to utils.go 2022-04-02 15:50:14 +02:00
yo 349ea12979 Unmount local FS before stopping jail 2022-04-02 14:17:10 +02:00
yo c36cf9511a Add sort support, can use every field 2021-12-20 22:10:38 +01:00
yo efb7248973 moved utilities into cmd/utils.go, started working on stop command 2021-12-18 21:34:43 +01:00