Compare commits

..

239 Commits
0.2.1 ... main

Author SHA1 Message Date
Natalia Serrano 719cfff000 Merge pull request 'refs #2608: Fix: avoid crash in _clientip when ip output includes empty entries' (#105) from ticket-2608 into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #105
2025-08-08 10:12:38 +02:00
Natalia Serrano c6207a3dee refs #2608 add changelog 2025-08-08 10:11:08 +02:00
Nicolas Arenas d34d3b7a66 refs #2608: Fix: avoid crash in _clientip when ip output includes empty entries 2025-08-08 02:58:58 +02:00
Natalia Serrano 2c3d256d30 Merge pull request 'refs #2581 try several encodings on hivexregedit output' (#104) from hivexregedit-decode into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #104
2025-08-01 14:01:52 +02:00
Natalia Serrano 65c739eff6 refs #2581 try several encodings on hivexregedit output 2025-08-01 14:01:33 +02:00
Natalia Serrano 440e2643c7 Merge pull request 'refs #2542 correctly decode hivexregedit UTF-16LE output' (#103) from hivexregedit-utf16le into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #103
2025-07-29 12:55:54 +02:00
Natalia Serrano b12ad64159 refs #2542 correctly decode hivexregedit UTF-16LE output 2025-07-29 12:55:27 +02:00
Natalia Serrano 2be41695d6 Merge pull request 'refs #2521 have CrearImagenGit not receive the "tag" parameter' (#102) from crearimagengit-no-tag into main
ogclient/pipeline/tag This commit looks good Details
ogclient/pipeline/head This commit looks good Details
Reviewed-on: #102
2025-07-24 15:39:18 +02:00
Natalia Serrano 463381fcde refs #2521 have CrearImagenGit not receive the "tag" parameter 2025-07-24 15:38:47 +02:00
Natalia Serrano f2f9fb3380 Merge pull request 'refs #2532 have GetGitData deal with the fact that .git may be a regular file' (#101) from fix-getgitdata into main
ogclient/pipeline/tag This commit looks good Details
ogclient/pipeline/head This commit looks good Details
Reviewed-on: #101
2025-07-24 15:22:58 +02:00
Natalia Serrano 8a1f881ce3 refs #2532 have GetGitData deal with the fact that .git may be a regular file 2025-07-24 15:22:34 +02:00
Natalia Serrano 9bbcfa6907 Merge pull request 'listswinfo' (#100) from listswinfo into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #100
2025-07-24 15:18:55 +02:00
Natalia Serrano 04d5a0dba1 refs #2530 show listSoftwareInfo errors in the log 2025-07-24 15:18:37 +02:00
Natalia Serrano b402ae6973 refs #2530 show listSoftwareInfo errors in the log 2025-07-24 15:18:10 +02:00
Natalia Serrano e2500eb491 Merge pull request 'refs #2526 fix bugs' (#99) from fix-3-bugs into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #99
2025-07-23 15:04:32 +02:00
Natalia Serrano 67bdc29abd refs #2526 fix bugs 2025-07-23 15:03:01 +02:00
Natalia Serrano 408b93d000 Merge pull request 'refs #2422 rename scripts' (#98) from rename-sh-py into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #98
2025-07-18 12:14:45 +02:00
Natalia Serrano 9da7d374f1 refs #2422 rename scripts 2025-07-18 12:13:25 +02:00
Natalia Serrano 5606085fbd Merge pull request 'ogfunctions-ret-none' (#97) from ogfunctions-ret-none into main
ogclient/pipeline/tag This commit looks good Details
ogclient/pipeline/head This commit looks good Details
Reviewed-on: #97
2025-07-17 16:32:34 +02:00
Natalia Serrano a1631a9954 refs #2438 update changelog 2025-07-17 16:31:46 +02:00
Natalia Serrano 5093a05142 refs #2438 fail if ogfunctions return None 2025-07-17 16:29:43 +02:00
Vadim vtroshchinskiy 820f77e246 Merge pull request '#2385 Correcciones a ModificarImagenGit + #2230 mejoras logging' (#96) from ogrepo-logging into main
Reviewed-on: #96
2025-07-17 16:20:26 +02:00
Natalia Serrano 909f97a463 Merge pull request 'refs #242504 add script for getting data out of deployed git images' (#95) from add-getgitdata into main
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #95
2025-07-17 15:11:59 +02:00
Natalia Serrano ca5df3e854 refs #242504 add script for getting data out of deployed git images 2025-07-17 15:11:38 +02:00
Natalia Serrano 4716c9a8b1 Merge pull request 'refs #2497 now Configurar.py is able to just make checks' (#94) from configurar-check into main
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #94
2025-07-17 15:04:30 +02:00
Natalia Serrano 0cbe4896ec refs #2497 now Configurar.py is able to just make checks 2025-07-17 15:03:45 +02:00
Natalia Serrano 7f8a2fb3b8 Merge pull request 'refs #2485 use python init scripts by default' (#93) from pyinit-default into main
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #93
2025-07-17 14:54:02 +02:00
Natalia Serrano a816642c3f refs #2485 use python init scripts by default 2025-07-17 14:53:41 +02:00
Vadim vtroshchinskiy 5356eda8ef Merge pull request 'refs #2466 Remove duplicated libraries' (#92) from remove-redundant-libs into main
Reviewed-on: #92
2025-07-17 10:45:32 +02:00
Vadim vtroshchinskiy b1a2a2eb07 refs #2466 Remove duplicated libraries 2025-07-17 10:33:16 +02:00
Vadim vtroshchinskiy 0d3ffe0180 refs #2385 Fix restoration 2025-07-17 10:02:51 +02:00
Vadim vtroshchinskiy 7315ebe2ff refs #2230: Fix logging 2025-07-17 10:02:51 +02:00
Natalia Serrano c33c9ec1af Merge pull request 'refs #2468 add python init scripts' (#91) from pyinit into main
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #91
2025-07-16 13:26:06 +02:00
Natalia Serrano 6617bace74 refs #2468 add python init scripts 2025-07-16 13:23:12 +02:00
Natalia Serrano a560380b81 Merge pull request 'refs #2464 change sort order' (#90) from getalldisks-sort into main
Reviewed-on: #90
2025-07-14 17:13:39 +02:00
Natalia Serrano acaf67f486 refs #2464 change sort order 2025-07-14 17:13:17 +02:00
Natalia Serrano 5cf92d6367 Merge pull request 'particionador' (#89) from particionador into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #89
2025-07-14 13:24:59 +02:00
Natalia Serrano c2d04ca39f refs #2432 remove unused function and debug stmts 2025-07-14 13:23:03 +02:00
Natalia Serrano 4432b60326 refs #2450 support two disks 2025-07-14 13:18:40 +02:00
Natalia Serrano 87b566532c refs #2415 check that 1st partition is the ESP in EFI systems 2025-07-14 13:18:40 +02:00
Natalia Serrano c5db321d93 refs #2461 remove dangling symlinks 2025-07-14 13:18:40 +02:00
Natalia Serrano 3d692f54a5 refs #2414 add a missing partition type 2025-07-14 13:18:40 +02:00
Natalia Serrano e529768257 refs #2414 add some more checks 2025-07-14 13:18:40 +02:00
Natalia Serrano 8029d469a7 refs #2414 improve some error messages, create a windows logical partition rather than an empty one 2025-07-14 13:18:40 +02:00
Natalia Serrano 73721d70f7 refs #2414 make initCache.py output more silent 2025-07-14 13:18:40 +02:00
Natalia Serrano 83c1c7763a refs #2414 do not fail when only the cache partition is requested 2025-07-14 13:18:40 +02:00
Natalia Serrano 9e7fda8944 refs #2414 fail early when requested some wrong scenarios 2025-07-14 13:18:40 +02:00
Natalia Serrano df36d74d7c refs #2441 remove "sgdisk" call in ogCreateCache 2025-07-14 13:18:40 +02:00
Natalia Serrano 38be98d9f1 refs #2436 add new function to obtain disk I/O size 2025-07-14 13:18:40 +02:00
Natalia Serrano 36a8277aab refs #2412 merge ogCreatePartitions and ogCreateGptPartitions into a single function 2025-07-14 13:18:40 +02:00
Natalia Serrano cf5ec4c214 refs #2412 fix two more bugs with extended/logical partitions 2025-07-14 13:18:40 +02:00
Natalia Serrano 0d28787318 refs #2412 fix bug with extended/logical partitions, remove useless variable, add some comments 2025-07-14 13:18:40 +02:00
Natalia Serrano 9cad17e4f4 refs #2412 check partition sizes before touching the disk 2025-07-14 13:18:40 +02:00
Natalia Serrano a7f4d767f5 refs #2412 add and improve error messages 2025-07-14 13:18:40 +02:00
Natalia Serrano 588ed96098 refs #2412 rename variables, add a couple of log messages, move a check 2025-07-14 13:18:38 +02:00
Natalia Serrano 87adfeda1c Merge pull request 'refs #2456 fix invocation of script' (#88) from fix-initCache into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #88
2025-07-14 11:15:05 +02:00
Natalia Serrano 6e806424cc refs #2456 fix invocation of script 2025-07-14 11:13:41 +02:00
Natalia Serrano 334f961e4c Merge pull request 'refs #2448 derive a strong password from the default opengnsys weak one' (#87) from ogkdf into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #87
2025-07-11 14:07:39 +02:00
Natalia Serrano 8ae6b503a6 refs #2448 derive a strong password from the default opengnsys weak one 2025-07-11 14:06:58 +02:00
Vadim vtroshchinskiy f7569ffe4d Merge pull request 'refs #2424 #2426 #2430 move gitlib support from oggit repo' (#85) from move-gitlib into main
ogclient/pipeline/head This commit looks good Details
Reviewed-on: #85
2025-07-11 12:13:57 +02:00
Vadim Trochinsky f97f800919 refs #2424 #2426 #2430 move gitlib support from oggit repo
refs #2424 - move GitLib code to this repo
refs #2426 - move interfaceAdm scripts to this repo
refs #2430 - remove sys.path.insert()
2025-07-11 12:13:41 +02:00
Natalia Serrano 0f0d62c655 Merge pull request 'refs #2448 #2449 configure and run filebeat' (#84) from filebeat into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #84
2025-07-11 12:00:43 +02:00
Natalia Serrano f2f373b996 refs #2448 #2449 configure and run filebeat 2025-07-11 11:58:28 +02:00
Natalia Serrano 8ede4f9ee1 Merge pull request 'refs #2431 improve error reporting' (#83) from fox-ogcreatecache into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #83
2025-07-07 11:03:49 +02:00
Natalia Serrano 4cb072361a refs #2431 improve error reporting 2025-07-07 11:03:22 +02:00
Natalia Serrano 74af2f96d8 refs #2381 do not fail if grub.cfg not found
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
2025-07-04 10:12:08 +02:00
Natalia Serrano ffabd191cb Merge pull request 'delete-scripts-interfaceAdm' (#82) from delete-scripts-interfaceAdm into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #82
2025-07-03 15:12:35 +02:00
Natalia Serrano 06f23e7194 refs #2378 remove several bash scripts 2025-07-03 15:11:52 +02:00
Natalia Serrano fab6590a4f refs #2378 remove several bash scripts 2025-07-03 15:11:07 +02:00
Natalia Serrano 5ed0bbc04b Merge pull request 'refs #2376 remove unused "cacheopts"' (#81) from remove-cacheopts into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #81
2025-07-03 14:31:01 +02:00
Natalia Serrano 6d9e8077ef refs #2376 remove unused "cacheopts" 2025-07-03 14:30:17 +02:00
Natalia Serrano 34e4fc9b00 Merge pull request 'refs #2374 fix dstat by starting/stopping pmcd once' (#80) from pmns-root into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #80
2025-07-03 12:49:44 +02:00
Natalia Serrano 3b39c6c1d0 refs #2374 fix dstat by starting/stopping pmcd once 2025-07-03 12:49:18 +02:00
Natalia Serrano 434ae2d464 Merge pull request 'refs #2345 include own IP address in the local CGI's title' (#79) from cgi-title into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #79
2025-07-03 10:29:51 +02:00
Natalia Serrano 7b4cd4d0bc refs #2345 include own IP address in the local CGI's title 2025-07-03 10:29:22 +02:00
Natalia Serrano 0476bff36a Merge pull request 'refs #2367 fix winboot/kexec' (#78) from fix-winboot into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #78
2025-07-02 09:59:48 +02:00
Natalia Serrano c9380e95b3 refs #2367 fix winboot/kexec 2025-07-02 09:59:29 +02:00
Natalia Serrano 862264c49f Merge pull request 'refs #2351 #2359 #2361 fix several things' (#77) from misc-fixes into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #77
2025-07-01 10:10:10 +02:00
Natalia Serrano 96ae327551 refs #2351 #2359 #2361 fix several things 2025-07-01 10:08:54 +02:00
Natalia Serrano 5e7b60366f Merge pull request 'refs #2348 don't copy grub.cfg' (#76) from dont-copy-grub-cfg into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #76
2025-06-27 13:28:15 +02:00
Natalia Serrano a142bb2729 refs #2348 don't copy grub.cfg 2025-06-27 13:27:52 +02:00
Natalia Serrano aa5efb52a3 Merge pull request 'refs #2343 don't check call to updateBootCache' (#75) from update-boot-cache into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #75
2025-06-27 11:31:36 +02:00
Natalia Serrano a64968d57f refs #2343 don't check call to updateBootCache 2025-06-27 11:31:09 +02:00
Nicolas Arenas 84c7aa8e29 Merge branch 'update_torrent_clients'
ogclient/pipeline/head This commit looks good Details
2025-06-27 08:10:43 +02:00
Nicolas Arenas 2a92557bbc Updated Changelog 2025-06-27 08:07:33 +02:00
Nicolas Arenas b410403ea5 missing changes in last commit 2025-06-27 08:03:43 +02:00
Nicolas Arenas 5ea6489b41 missing changes in last commit 2025-06-27 07:46:16 +02:00
Nicolas Arenas 155f4b95b8 Merge pull request 'refs #2340: Replaces ctorrent with aria2c and mktorrent' (#73) from update_torrent_clients into main
ogclient/pipeline/head This commit looks good Details
Reviewed-on: #73
2025-06-27 07:02:53 +02:00
Nicolas Arenas 4ae16782ca updated changelog 2025-06-27 06:53:51 +02:00
Nicolas Arenas 5321325142 refs #2340: Replaces ctorrent with aria2c and mktorrent 2025-06-26 18:44:31 +02:00
Natalia Serrano 4c191aa730 Merge pull request 'fix-syntax-and-others' (#72) from fix-syntax-and-others into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #72
2025-06-26 13:39:31 +02:00
Natalia Serrano e3f5470fce refs #2331 fix syntax and other errors 2025-06-26 13:37:33 +02:00
Natalia Serrano 13ebbc2939 refs #2319 widen a check for None 2025-06-26 13:26:49 +02:00
Natalia Serrano 9cc67bbf1f Merge pull request 'refs #2316 prevent Configurar.py from messing with the browser' (#71) from configurar-coproc into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #71
2025-06-25 11:22:25 +02:00
Natalia Serrano 78f27b724e refs #2316 prevent Configurar.py from messing with the browser 2025-06-25 11:21:53 +02:00
Natalia Serrano b78fb6f900 Merge pull request 'refs #2314 fix bugs' (#70) from fix-bugs into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #70
2025-06-25 11:18:08 +02:00
Natalia Serrano 0f2cb4aefe refs #2314 fix bugs 2025-06-25 11:17:31 +02:00
Natalia Serrano 5541e39b5f Merge pull request 'refs #2308 do ogExecAndLog also when creating images' (#69) from ogexecandlog-createimage into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #69
2025-06-24 15:25:56 +02:00
Natalia Serrano 4f0543fe79 refs #2308 do ogExecAndLog also when creating images 2025-06-24 15:25:09 +02:00
Natalia Serrano a5eacbe203 Merge pull request '#2301 adds mount route when boot mark is created' (#67) from fix-bootMark-linux into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #67
2025-06-24 15:10:25 +02:00
Luis Gerardo Romero Garcia a34c98eb4c refs #2301 updates changelog 0.19.3 2025-06-24 15:09:21 +02:00
Luis Gerardo Romero Garcia c55a75f5ce #2301 adds mount route when boot mark is created 2025-06-24 15:08:29 +02:00
Natalia Serrano 1bf1283aff Merge pull request 'refs #2305 have ogExecAndLog do subprocess.Popen' (#68) from ogexecandlog into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #68
2025-06-24 15:04:40 +02:00
Natalia Serrano d5279eba42 refs #2305 have ogExecAndLog do subprocess.Popen 2025-06-24 15:03:52 +02:00
Natalia Serrano 87fb51ed2a refs #2304 remove obsolete useless function ogMcastRequest
ogclient/pipeline/head This commit looks good Details
2025-06-24 11:50:16 +02:00
Natalia Serrano c9c9e98359 Merge pull request 'refs #2301 write a mark for ogboot on linux only' (#66) from boot-mark-linux-only into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #66
2025-06-24 11:02:59 +02:00
Natalia Serrano 62ed2e3dde refs #2301 write a mark for ogboot on linux only 2025-06-24 11:01:36 +02:00
Natalia Serrano 7cefe8ff43 Merge pull request 'refs #2287 fix efi path' (#65) from fix-path into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #65
2025-06-23 16:28:48 +02:00
Natalia Serrano 9fc48067e6 refs #2287 fix efi path 2025-06-23 16:28:30 +02:00
Natalia Serrano 13b262d8f7 Merge pull request 'refs #2283 create boot mark file' (#64) from boot-mark-file into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #64
2025-06-23 12:57:56 +02:00
Natalia Serrano e43e8baea1 refs #2283 create boot mark file 2025-06-23 12:57:10 +02:00
Natalia Serrano d619cb005d Merge pull request 'refs #2238 support None as partition type' (#63) from createpartitions-none into main
ogclient/pipeline/tag This commit looks good Details
ogclient/pipeline/head This commit looks good Details
Reviewed-on: #63
2025-06-19 11:40:25 +02:00
Natalia Serrano 6d5dea6657 refs #2238 support None as partition type 2025-06-19 11:39:58 +02:00
Natalia Serrano d5fe20d291 Merge pull request 'refs #2236 look for grub.cfg in two places' (#62) from fix-ogboot into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #62
2025-06-18 09:49:40 +02:00
Natalia Serrano c7081b3921 refs #2236 look for grub.cfg in two places 2025-06-18 09:49:16 +02:00
Natalia Serrano 6c543660f9 Merge pull request 'refs #2227 add oggit scripts and libs' (#61) from add-oggit-scripts-libs into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #61
2025-06-16 15:59:21 +02:00
Natalia Serrano 594314161e refs #2227 add oggit scripts and libs 2025-06-16 15:58:54 +02:00
Natalia Serrano 7c326e7114 Merge pull request 'refs #2215 remove loop0 warning, fix windows efi boot' (#60) from loop0 into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #60
2025-06-16 09:44:59 +02:00
Natalia Serrano 944390806b refs #2215 remove loop0 warning, fix windows efi boot 2025-06-16 09:43:33 +02:00
Natalia Serrano 461c5faed5 Merge pull request 'refs #2206 give some care to the Custom scripts' (#59) from scripts-custom into main
ogclient/pipeline/head This commit looks good Details
Reviewed-on: #59
2025-06-12 15:46:59 +02:00
Natalia Serrano a9a2d19653 refs #2206 give some care to the Custom scripts 2025-06-12 15:46:06 +02:00
Natalia Serrano e80ed538b8 Merge pull request 'refs #2204 create missing directory' (#58) from mkdir-grub into main
Reviewed-on: #58
2025-06-12 10:23:56 +02:00
Natalia Serrano 857ebbd267 refs #2204 create missing directory 2025-06-12 10:23:20 +02:00
Natalia Serrano 03f8203598 Merge pull request 'refs #2202 fix bug when creating partitions' (#57) from ogcreatepartitions into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #57
2025-06-11 15:29:07 +02:00
Natalia Serrano 3fd94ecb8f refs #2202 fix bug when creating partitions 2025-06-11 15:28:41 +02:00
Natalia Serrano d2ef8a98f2 Merge pull request 'refs #2198 #2199 #2200 fix bugs' (#56) from bugs-varios into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #56
2025-06-11 10:20:40 +02:00
Natalia Serrano 8af4627e28 refs #2198 #2199 #2200 fix bugs 2025-06-11 10:20:01 +02:00
Natalia Serrano b64b6d79b3 Merge pull request 'refs #2196 remove OG bash functions from the agent's environment' (#55) from no-bash-functions-in-agent into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #55
2025-06-10 12:25:11 +02:00
Natalia Serrano efc22c1bcd refs #2196 remove OG bash functions from the agent's environment 2025-06-10 12:20:16 +02:00
Natalia Serrano 36bf1539d6 Merge pull request 'rc-pipelines' (#54) from rc-pipelines into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #54
2025-06-09 10:35:21 +02:00
Natalia Serrano f2c4371e1e refs #2189 get rc of bash pipelines 2025-06-09 10:35:02 +02:00
Natalia Serrano 39b947e598 refs #2189 get rc of bash pipelines 2025-06-09 10:31:34 +02:00
Natalia Serrano 0a26ebd946 Merge pull request 'deployimage-rc' (#53) from deployimage-rc into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #53
2025-06-06 13:58:33 +02:00
Natalia Serrano 4061f85704 refs #2187 fix rc management in deployImage.py 2025-06-06 13:58:14 +02:00
Natalia Serrano 928dedfeeb refs #2187 fix rc management in deployImage.py 2025-06-06 13:57:33 +02:00
Natalia Serrano 357c94e9ea Merge pull request 'refs #2184 make stunnel use and/or verify tls' (#52) from stunnel-usetls into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #52
2025-06-06 11:59:02 +02:00
Natalia Serrano df7d8d96cb refs #2184 make stunnel use and/or verify tls 2025-06-06 11:58:26 +02:00
Natalia Serrano 4df8caa203 Merge pull request 'refs #2171 copy grub.cfg' (#51) from cp-grub-cfg into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #51
2025-06-04 14:00:25 +02:00
Natalia Serrano fa8e94e688 refs #2171 copy grub.cfg 2025-06-04 13:59:59 +02:00
Natalia Serrano 65a3b862f7 Merge pull request 'ogexecandlog-returncode' (#50) from ogexecandlog-returncode into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #50
2025-06-03 09:32:06 +02:00
Natalia Serrano 05279ba7c5 refs #2165 review returncodes to the shell 2025-06-03 09:30:47 +02:00
Natalia Serrano 15a238c206 refs #2161 fix call to ogTorrentStart via ogExecAndLog 2025-06-02 15:15:18 +02:00
Natalia Serrano 93e349105a Merge pull request 'refs #2164 correctly parse the mcast session' (#49) from mcast-sess into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #49
2025-06-02 14:57:54 +02:00
Natalia Serrano d733d04b69 refs #2164 correctly parse the mcast session 2025-06-02 14:57:29 +02:00
Natalia Serrano e83e0e6e16 Merge pull request 'refs #2162 fix variable name' (#48) from unicast-direct into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #48
2025-06-02 12:13:59 +02:00
Natalia Serrano 972c2a7c8c refs #2162 fix variable name 2025-06-02 12:13:20 +02:00
Natalia Serrano def329436d Merge pull request 'fix-ucast-mcast' (#47) from fix-ucast-mcast into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #47
2025-05-30 13:33:16 +02:00
Natalia Serrano 29cc09105e refs #2153 fully qualify method call 2025-05-30 13:32:42 +02:00
Natalia Serrano 64c5eeae6e refs #2153 fully qualify method call 2025-05-30 13:31:27 +02:00
Natalia Serrano 1050133d59 refs #2151 explicitly return a true value 2025-05-30 13:30:05 +02:00
Natalia Serrano d76390a7b9 Merge pull request 'refs #2105 show sgdisk error' (#46) from fix-configurar into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #46
2025-05-28 14:32:46 +02:00
Natalia Serrano afe190c47d refs #2105 show sgdisk error 2025-05-28 14:30:39 +02:00
Natalia Serrano 9d1224e0c8 Merge pull request 'refs #2103 unlink() only existing files' (#45) from unlink-existing into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #45
2025-05-28 14:05:51 +02:00
Natalia Serrano 02b6708442 refs #2103 unlink() only existing files 2025-05-28 14:05:18 +02:00
Natalia Serrano d7fa82636a Merge pull request 'urlmenu-local-stunnel' (#44) from urlmenu-local-stunnel into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #44
2025-05-28 13:45:33 +02:00
Natalia Serrano bc89ddd711 refs #2053 point urlMenu back to the localhost stunnel 2025-05-28 13:44:55 +02:00
Natalia Serrano 4e3740287a refs #2053 point urlMenu back to the localhost stunnel 2025-05-21 17:22:12 +02:00
Natalia Serrano ab5544203d Merge pull request 'refs #2060 make dbus envvar available to the agent' (#43) from export-dbus-address into main
ogclient/pipeline/head There was a failure building this commit Details
ogclient/pipeline/tag There was a failure building this commit Details
Reviewed-on: #43
2025-05-21 15:56:14 +02:00
Natalia Serrano 50716302dd refs #2060 make dbus envvar available to the agent 2025-05-21 15:55:55 +02:00
Natalia Serrano 3796221fb0 Merge pull request 'refs #2047 run dbus' (#42) from dbus into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #42
2025-05-19 19:52:26 +02:00
Natalia Serrano 8a3a2b4084 refs #2047 run dbus 2025-05-19 19:51:46 +02:00
Natalia Serrano d80695ccb8 Merge pull request 'refs #2038 no ssl urlmenu' (#41) from no-ssl-urlmenu into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #41
2025-05-19 11:52:26 +02:00
Natalia Serrano 2064b787c4 refs #2038 no ssl urlmenu 2025-05-19 11:48:17 +02:00
Natalia Serrano cf13a6da72 Merge pull request 'stunnel' (#40) from stunnel into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #40
2025-05-18 12:28:36 +02:00
Natalia Serrano 867508d5ee refs #2029 update changelog 2025-05-18 12:26:44 +02:00
Natalia Serrano 4a94875d7e refs #2029 change urlMenu to point to stunnel 2025-05-18 12:26:10 +02:00
Natalia Serrano 3d2f06d577 refs #2028 send stunnel output to a log 2025-05-18 11:19:56 +02:00
Natalia Serrano 6c88096eae refs #2027 #2028 run stunnel during startup 2025-05-16 15:42:13 +02:00
Natalia Serrano ed070bc566 Merge pull request 'refs #2000 run the new browser' (#39) from browser into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #39
2025-05-14 14:53:17 +02:00
Natalia Serrano fd59bdc7fa refs #2000 run the new browser 2025-05-14 14:51:23 +02:00
Natalia Serrano cbb978e514 Merge pull request 'refs #1981 use zstd when creating and restoring images' (#38) from use-zstd into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #38
2025-05-09 13:45:51 +02:00
Natalia Serrano e1b8e5c625 refs #1981 use zstd when creating and restoring images 2025-05-09 13:45:03 +02:00
Natalia Serrano 03827cdc58 Merge pull request 'agentcfg-imgname' (#37) from agentcfg-imgname into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #37
2025-05-09 12:17:27 +02:00
Natalia Serrano 9a48940800 refs #1980 pass imgname to configureOs.py 2025-05-09 12:16:21 +02:00
Natalia Serrano 6958c658e8 refs #1980 pass imgname to configureOs.py 2025-05-09 12:11:34 +02:00
Natalia Serrano 06885b35d7 refs #1979 pass imgname to ogConfigureOgagent() 2025-05-09 12:11:02 +02:00
Natalia Serrano b9a2c58c96 refs #1978 change imgname in ogagent.cfg 2025-05-09 12:09:34 +02:00
Natalia Serrano 24f5461860 Merge pull request 'refs #1970 fix handling of spaces in ogNvramAddEntry' (#36) from fix-ogNvramAddEntry into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #36
2025-05-08 09:50:53 +02:00
Natalia Serrano 0961ec10be refs #1970 fix handling of spaces in ogNvramAddEntry 2025-05-08 09:50:25 +02:00
Natalia Serrano 9514ce6b25 Merge pull request 'refs #1962 ignore tch parameter' (#35) from ignore-tch into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #35
2025-05-07 14:47:54 +02:00
Natalia Serrano eb88929f86 refs #1962 ignore tch parameter 2025-05-07 14:47:10 +02:00
Natalia Serrano 6a18e1a0ba Merge pull request 'fix-ogboot' (#34) from fix-ogboot into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details
Reviewed-on: #34
2025-05-07 11:46:57 +02:00
Natalia Serrano 94ee50eff5 refs #1956 gracefully handle error 2025-05-07 11:46:31 +02:00
Natalia Serrano 41f0efbf5c refs #1956 gracefully handle error 2025-05-07 11:06:43 +02:00
Natalia Serrano 7624964ba1 Merge pull request 'refs #1925 send /stopped on poweroff or restart' (#33) from agent-stopped-on-poweroff into main
ogclone-engine/pipeline/head This commit looks good Details
ogclient/pipeline/head This commit looks good Details
Reviewed-on: #33
2025-04-23 13:59:20 +02:00
Natalia Serrano c3e86b7dc0 refs #1925 send /stopped on poweroff or restart 2025-04-23 13:58:51 +02:00
Natalia Serrano a18e861bea Merge pull request 'refs #1912 fix a couple of rc' (#32) from test-configurar-py into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #32
2025-04-21 12:49:14 +02:00
Natalia Serrano 842dbf48c2 refs #1912 fix a couple of rc 2025-04-21 12:48:47 +02:00
Natalia Serrano d79c677f16 Merge pull request 'refs #1918 fix getConfiguration.py' (#31) from fix-getConfiguration into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #31
2025-04-15 17:56:50 +02:00
Natalia Serrano bd056438a1 refs #1918 fix getConfiguration.py 2025-04-15 17:56:27 +02:00
Natalia Serrano fb665fa4ca Merge pull request 'refs #1908 remove refs to OGLOG' (#30) from remove-OGLOG into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #30
2025-04-15 17:17:18 +02:00
Natalia Serrano c76fd8388a refs #1908 remove refs to OGLOG 2025-04-15 17:16:48 +02:00
Natalia Serrano fac6e142f6 Merge pull request 'refs #1914 fix a couple of bugs' (#29) from fix-restaurar-imagen into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #29
2025-04-15 17:07:07 +02:00
Natalia Serrano e20bd46edb refs #1914 fix a couple of bugs 2025-04-15 17:06:34 +02:00
Natalia Serrano f785143b73 Merge pull request 'refs #1916 move ogGetIpAddress to NetLib' (#28) from move-ogGetIpAddress into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #28
2025-04-15 17:04:00 +02:00
Natalia Serrano bf85cb1fed refs #1916 move ogGetIpAddress to NetLib 2025-04-15 17:03:31 +02:00
Natalia Serrano e885302256 Merge pull request 'oglog' (#27) from oglog into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #27
2025-04-15 16:58:15 +02:00
Natalia Serrano ad3388d36e Merge branch 'main' into oglog 2025-04-15 16:56:51 +02:00
Natalia Serrano 46238456cb refs #1838 log to /var/log instead of the shared /opt/opengnsys/log 2025-04-15 16:55:45 +02:00
Natalia Serrano 0179d106e9 refs #1838 log to /var/log instead of the shared /opt/opengnsys/log 2025-04-15 16:54:06 +02:00
Nicolas Arenas 697c60f812 Publish in nightlys
ogclone-engine/pipeline/head This commit looks good Details
2025-04-10 16:26:15 +02:00
Natalia Serrano 4353c74768 Merge pull request 'refs #1879 negate rc to the shell' (#25) from negate-rc-for-shell into main
ogclone-engine/pipeline/tag This commit looks good Details
ogclone-engine/pipeline/head This commit looks good Details
Reviewed-on: #25
2025-04-10 13:33:26 +02:00
Natalia Serrano 2c18e6981f refs #1879 negate rc to the shell 2025-04-10 13:32:48 +02:00
Natalia Serrano c1f123b489 Merge pull request 'refs #1878 makes writable Samba export in ogclient' (#24) from make_samba_public into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #24
2025-04-10 09:41:27 +02:00
Natalia Serrano 1f92f54994 refs #1878 update changelog 2025-04-10 09:41:08 +02:00
Nicolas Arenas bbaa6578e1 refs #1878 makes writable Samba export in ogclient 2025-04-10 08:11:04 +02:00
Natalia Serrano e1a1be667b Merge pull request 'fix-ogReduceFs' (#23) from fix-ogReduceFs into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #23
2025-04-09 18:36:47 +02:00
Natalia Serrano 44511c79a0 refs #1876 change check and improve debug msg 2025-04-09 18:36:11 +02:00
Natalia Serrano a1493a827e refs #1876 change check and improve debug msg 2025-04-09 17:47:51 +02:00
Natalia Serrano 0352e3a2cc Merge pull request 'refs #1874 fix syntax' (#22) from fix-syntax into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #22
2025-04-09 17:34:55 +02:00
Natalia Serrano e76fe57b1b refs #1874 fix syntax 2025-04-09 17:34:29 +02:00
Natalia Serrano 793705953f Merge pull request 'refs #1874 fix usage of ogEcho' (#21) from fix-ogEcho into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #21
2025-04-09 17:20:34 +02:00
Natalia Serrano 782e5c8978 refs #1874 fix usage of ogEcho 2025-04-09 17:20:03 +02:00
Natalia Serrano 0e979c46fa Merge pull request 'refs #1872 always kill browser before exiting' (#20) from configurar-defunct into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #20
2025-04-09 11:25:19 +02:00
Natalia Serrano 6cbe28272f refs #1872 always kill browser before exiting 2025-04-09 11:24:49 +02:00
Natalia Serrano 565e3d4091 Merge pull request 'refs #1802 fix functions/ogCopyFile args handling' (#19) from fix-restore-torrent into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #19
2025-04-07 10:54:12 +02:00
Natalia Serrano 5e9fb86f9f refs #1802 fix functions/ogCopyFile args handling 2025-04-07 10:53:29 +02:00
Natalia Serrano df16663594 Merge pull request 'refs #1801 fix invocation to ogCheckIpAddress' (#18) from fix-stringlib into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #18
2025-04-03 14:11:27 +02:00
Natalia Serrano 48f6a41838 refs #1801 fix invocation to ogCheckIpAddress 2025-04-03 14:10:15 +02:00
Natalia Serrano 288aa9cf09 Merge pull request 'refs #1749 remove burg and rsync 3.1' (#17) from delete-stuff2 into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #17
2025-04-03 14:04:19 +02:00
Natalia Serrano 9847cad6a9 refs #1749 remove burg and rsync 3.1 2025-04-03 13:57:24 +02:00
Natalia Serrano 1be353aa1d Merge pull request 'Revert "refs #1749 remove burg, QT4 stuff, rsync 3.1 and the old browser"' (#16) from restore-browser into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #16
2025-03-31 17:54:58 +02:00
Natalia Serrano 78b76bcd6c Revert "refs #1749 remove burg, QT4 stuff, rsync 3.1 and the old browser"
This reverts commit 90dd04b1db.
2025-03-31 17:53:19 +02:00
Natalia Serrano 14b0f2db47 Merge pull request 'refs #1787 do not require protoopts' (#15) from protoopts into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #15
2025-03-31 12:55:58 +02:00
Natalia Serrano f577311277 refs #1787 do not require protoopts 2025-03-31 12:55:02 +02:00
Natalia Serrano a580a1a516 Merge pull request 'delete-stuff' (#14) from delete-stuff into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #14
2025-03-28 14:35:14 +01:00
Natalia Serrano feb4a80222 refs #1749 remove burg, QT4 stuff, rsync 3.1 and the old browser 2025-03-28 14:34:15 +01:00
Natalia Serrano 90dd04b1db refs #1749 remove burg, QT4 stuff, rsync 3.1 and the old browser 2025-03-28 14:33:09 +01:00
Natalia Serrano 85b7ef1452 Merge pull request 'fix-create-partitions' (#13) from fix-create-partitions into main
ogclone-engine/pipeline/tag This commit looks good Details
Reviewed-on: #13
2025-03-28 14:10:12 +01:00
Natalia Serrano 280d160a7a refs #1779 remove lots of internal debug stuff 2025-03-28 14:05:11 +01:00
Natalia Serrano 3d35f0029b refs #1779 fix some bugs, remove internal debug stuff 2025-03-28 13:51:37 +01:00
Natalia Serrano ee164eda7b refs #1779 fix some bugs, remove internal debug stuff 2025-03-28 12:17:25 +01:00
Nicolas Arenas 2436904931 Updated jenkinsfile
ogclone-engine/pipeline/tag This commit looks good Details
2025-03-27 09:29:18 +01:00
Nicolas Arenas b470c6e11f Updated jenkinsfile
ogclone-engine/pipeline/tag There was a failure building this commit Details
2025-03-27 09:27:50 +01:00
Nicolas Arenas f0c6856a55 Updated jenkinsfile
ogclone-engine/pipeline/tag There was a failure building this commit Details
2025-03-27 09:25:23 +01:00
Nicolas Arenas 42b5e7a827 Fixes permissions and samba configuration
ogclone-engine/pipeline/tag This commit looks good Details
2025-03-26 19:24:12 +01:00
Natalia Serrano d748bb18d1 Merge pull request 'refs #1773 do not capture output' (#12) from capture-output into main
Reviewed-on: #12
2025-03-26 12:09:56 +01:00
Natalia Serrano 8a02db31cf refs #1773 do not capture output
ogclone-engine/pipeline/tag This commit looks good Details
2025-03-26 12:08:14 +01:00
Natalia Serrano ba42dd9f42 Merge pull request 'ejecutarscript-bash' (#11) from ejecutarscript-bash into main
Reviewed-on: #11
2025-03-26 11:58:14 +01:00
415 changed files with 7725 additions and 6758 deletions

View File

@ -5,6 +5,560 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.1.3] - 2025-08-08
### Fixed
- Fix parsing of the output of '/bin/ip -json'
## [1.1.2] - 2025-07-31
### Changed
- Try several encodings on hivexregedit output
## [1.1.1] - 2025-07-29
### Fixed
- Correctly decode hivexregedit UTF-16LE output
## [1.1.0] - 2025-07-24
### Changed
- Have CrearImagenGit not receive the "tag" parameter
## [1.0.3] - 2025-07-24
### Fixed
- Have GetGitData deal with the fact that .git may be a regular file
## [1.0.2] - 2025-07-24
### Changed
- Write listSoftwareInfo errors in the log
## [1.0.1] - 2025-07-23
### Fixed
- Fixed small bugs in the py init scripts
## [1.0.0] - 2025-07-18
### Changed
- Renamed scripts so they don't have .py extension
## [0.30.1] - 2025-07-17
### Changed
- Have wrappers fail if functions return None
## [0.30.0] - 2025-07-17
### Added
- Add script for getting data out of deployed git images
## [0.29.0] - 2025-07-17
### Changed
- Now Configurar.py takes a third parameter: whether just check stuff or not
## [0.28.0] - 2025-07-17
### Changed
- Use python init scripts by default
## [0.27.0] - 2025-07-16
### Added
- Add python init scripts
## [0.26.1] - 2025-07-14
### Changed
- Change sort order in `_getAllDisks()`
## [0.26.0] - 2025-07-14
### Fixed
- Overhaul partitioning
## [0.25.2] - 2025-07-14
### Fixed
- Run initCache.py rather than just initCache
## [0.25.1] - 2025-07-11
### Changed
- Derive a strong password from the default opengnsys weak one
## [0.25.0] - 2025-07-11
## Added
- Add ogGit functionality
## [0.24.0] - 2025-07-11
### Added
- Configure and run filebeat
## [0.23.2] - 2025-07-07
### Changed
- Improved error reporting in ogCreateCache
## [0.23.1] - 2025-07-04
### Fixed
- Don't fail if grub.cfg is not found
## [0.23.0] - 2025-07-03
### Removed
- Remove several bash scripts under "scripts" and "interfaceAdm"
## [0.22.8] - 2025-07-03
### Removed
- Remove unused "cacheopts"
## [0.22.7] - 2025-07-03
### Fixed
- Fix dstat--show bandwith in the local cgi
## [0.22.6] - 2025-07-03
### Changed
- Include own IP address in the local CGI's title
## [0.22.5] - 2025-07-02
### Fixed
- Fixed booting windows using winboot/kexec
## [0.22.4] - 2025-07-01
### Changed
- Do copy grub.cfg :) and clean it up on boot
- Remove warning about /dev/loop0
- Comment unused code out
## [0.22.3] - 2025-06-27
### Changed
- Don't copy grub.cfg
## [0.22.2] - 2025-06-27
### Fixed
- Don't check rc of updateBootCache.py because we may have no cache partition
## [0.22.1] - 2025-06-27
### Fixed
- Included some changes that should be in the previous version
## [0.22.0] - 2025-06-26
### Changed
- Changed torrent client from ctorrent to aria2c
- Updated ogCreateTorrent function replaced ctorrent with mktorrent
## [0.21.1] - 2025-06-26
### Fixed
- Fixed syntax and other errors
## [0.21.0] - 2025-06-25
### Changed
- Prevent Configurar.py from messing with the browser
## [0.20.3] - 2025-06-25
### Fixed
- Fixed bugs when partitioning disks
## [0.20.2] - 2025-06-24
### Changed
- Do a couple of ogExecAndLog()s also when creating images
## [0.20.1] - 2025-06-24
### Changed
- Fix mark for ogboot on linux
## [0.20.0] - 2025-06-24
### Changed
- In order to have /tmp/command.log updated in realtime, ogExecAndLog now spawns a subprocess rather than calling functions directly
## [0.19.2] - 2025-06-24
### Changed
- Write a mark for ogboot on linux only
## [0.19.1] - 2025-06-23
### Fixed
- Fixed path of EFI boot entry
## [0.19.0] - 2025-06-23
### Changed
- Write a mark for ogboot
## [0.18.2] - 2025-06-19
### Fixed
- Accept None as partition type
## [0.18.1] - 2025-06-18
### Fixed
- Look for grub.cfg in two places rather than one
## [0.18.0] - 2025-06-16
### Added
- Added scripts and libs for oggit
## [0.17.0] - 2025-06-16
### Changed
- Removed useless warning about /dev/loop0
- Fix windows EFI booting, and a typo
## [0.16.0] - 2025-06-12
### Changed
- Gave some care to the "Custom" scripts
## [0.15.3] - 2025-06-12
### Fixed
- Create missing dir
## [0.15.2] - 2025-06-11
### Fixed
- Fixed a condition check
## [0.15.1] - 2025-06-11
### Fixed
- Add a missing "import"
- Fix retrieving windows version from the registry
- Fix bug while building the "Part-01-01" string
- Removed obsolete unused "bootOS" scripts (with a capital "S")
## [0.15.0] - 2025-06-10
### Changed
- Remove opengnsys bash functions from the agent's environment
## [0.14.2] - 2025-06-09
### Fixed
- Get rc of bash pipelines in ProtocolLib
## [0.14.1] - 2025-06-07
### Fixed
- Fixed rc management in deployImage.py
## [0.14.0] - 2025-06-07
### Changed
- Read $ogusetls and $ogverifytls from the environment and configure stunnel accordingly
## [0.13.9] - 2025-06-04
### Fixed
- Copy grub.cfg so that grub finds the config upon boot
## [0.13.8] - 2025-06-03
### Fixed
- Paid attention to return codes between python (True for success) and shell (0 for success)
## [0.13.7] - 2025-06-02
### Fixed
- Fixed management of the "multicast session" parameter
## [0.13.6] - 2025-06-02
### Fixed
- Fixed variable name in restoreImage.py
## [0.13.5] - 2025-05-30
### Fixed
- Return a true value from the unicast/multicast methods
- Fully qualify a method call
## [0.13.4] - 2025-05-28
### Changed
- Show sgdisk output
## [0.13.3] - 2025-05-28
### Fixed
- unlink() only existing files
## [0.13.2] - 2025-05-28
### Changed
- Point urlMenu back to the localhost stunnel
## [0.13.1] - 2025-05-21
### Changed
- Make dbus envvar available to the agent
## [0.13.0] - 2025-05-19
### Added
- Run dbus
## [0.12.0] - 2025-05-18
### Changed
- no tls for the urlmenu either
## [0.11.0] - 2025-05-18
### Added
- Run stunnel and point the browser to it
## [0.10.0] - 2025-05-14
### Changed
- Run the new browser
## [0.9.0] - 2025-05-09
### Added
- Use zstd when creating and restoring images
## [0.8.4] - 2025-05-09
### Added
- When restoring an image, include the image name in the ogagent configuration file
## [0.8.3] - 2025-05-08
### Fixed
- Have ogNvramAddEntry() handle EFI entries with spaces in them
## [0.8.2] - 2025-05-07
### Changed
- Have Configurar.py ignore the tch parameter, take cache size from the definition of the cache partition
## [0.8.1] - 2025-05-07
### Fixed
- Gracefully handle error in ogBoot() when not finding /boot partition in target's fstab
## [0.8.0] - 2025-04-23
### Added
- Have the oglive agent send /stopped on poweroff or restart
## [0.7.2] - 2025-04-21
### Fixed
- Have the partitioning functions return a meaningful rc
## [0.7.1] - 2025-04-15
### Fixed
- getConfiguration.py: don't fail if NTFS filesystems are mounted ro
## [0.7.0] - 2025-04-15
### Removed
- Removed references to ogGlobals.OGLOG in python code
## [0.6.1] - 2025-04-15
### Fixed
- Fixed capturing of partclone output and management of return value
## [0.6.0] - 2025-04-15
### Changed
- ogGetIpAddress() is no longer required in ogGlobals--move it back into NetLib
## [0.5.0] - 2025-04-15
### Changed
- Log to /var/log/clone-engine.log and clone-engine.json.log
## [0.4.1] - 2025-04-10
### Fixed
- restoreImage.py: return negated rc to the shell
## [0.4.0] - 2025-04-10
### Changed
- Make /opt/opengnsys writable in clients, just like it used to be
## [0.3.6] - 2025-04-09
### Fixed
- Fixed ogReduceFs
## [0.3.5] - 2025-04-09
### Fixed
- Fixed syntax
## [0.3.4] - 2025-04-09
### Fixed
- Fixed usage of ogEcho in FileSystemLib
## [0.3.3] - 2025-04-09
### Fixed
- Kill coproc'ed browser in all execution branches in Configurar.py
## [0.3.2] - 2025-04-07
### Fixed
- Handle invalid number of arguments pass to functions/ogCopyFile
## [0.3.1] - 2025-04-03
### Fixed
- Fixed invocation to ogCheckIpAddress in interfaceAdm/CrearImagen.py
## [0.3.0] - 2025-04-03
### Removed
- Removed burg and rsync 3.1
## [0.2.6] - 2025-03-31
### Fixed
- Restore qt4 browser
## [0.2.5] - 2025-03-31
### Fixed
- Don't require protoopts in interfaceAdm/RestaurarImagen.py
## [0.2.4] - 2025-03-28
### Removed
- Removed burg, QT4 stuff, rsync 3.1 and the old browser
## [0.2.3] - 2025-03-28
### Fixed
- Fixed some errors in Configurar.py, ogCreateCache, ogCreatePartitions and initCache.py
## [0.2.2] - 2025-03-26
### Fixed
- Prevent EjecutarScript.py from capturing the output of the script
## [0.2.1] - 2025-03-26
### Fixed

View File

@ -48,16 +48,22 @@ pipeline {
}
}
}
stage('Generate Changelog (Nightly)'){
when {
branch 'main'
}
steps {
script {
def devName = params.DEV_NAME ? params.DEV_NAME : env.DEFAULT_DEV_NAME
def devEmail = params.DEV_EMAIL ? params.DEV_EMAIL : env.DEFAULT_DEV_EMAIL
generateDebianChangelog(env.BUILD_DIR, devName, devEmail,"nightly")
}
}
}
stage('Build') {
steps {
dir("${env.BUILD_DIR}") {
sh '''
dpkg-buildpackage -us -uc
mkdir -p ../artifacts && mv ../*.deb ../*.changes ../*.buildinfo ../artifacts/
ssh aptly@172.17.8.68 "rm -rf /var/tmp/opengnsys/debian-repo/ogclient && mkdir -p /var/tmp/opengnsys/debian-repo/ogclient"
scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/ogclient
'''
script {
construirPaquete(env.BUILD_DIR, "../artifacts", "172.17.8.68", "/var/tmp/opengnsys/debian-repo/ogclient")
}
}
}
@ -69,7 +75,24 @@ pipeline {
}
agent { label 'debian-repo' }
steps {
sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/ogclient/*.deb"
script {
// Construir el patrón de versión esperado en el nombre del paquete
def versionPattern = "${env.TAG_NAME}-${env.BUILD_NUMBER}"
publicarEnAptly('/var/tmp/opengnsys/debian-repo/ogclient', 'opengnsys-devel', versionPattern)
}
}
}
stage ('Publish to Debian Repository (Nightly)') {
when {
branch 'main'
}
agent { label 'debian-repo' }
steps {
script {
// Construir el patrón de versión esperado en el nombre del paquete
def versionPattern = "-${env.BUILD_NUMBER}~nightly"
publicarEnAptly('/var/tmp/opengnsys/debian-repo/ogclient', 'nightly', versionPattern)
}
}
}
}

View File

@ -23,13 +23,7 @@ case "$1" in
cp -a "$OLD_FILE" "$NEW_FILE"
# Append our configuration
echo "include = /etc/samba/smb-ogclient.conf" >> "$NEW_FILE"
# Use ucf to handle the file update
ucf --debconf-ok "$NEW_FILE" "$OLD_FILE"
# Clean up
rm -f "$NEW_FILE"
echo "include = /etc/samba/smb-ogclient.conf" >> "$OLD_FILE"
# Reload Samba
if command -v systemctl >/dev/null 2>&1; then
@ -48,6 +42,8 @@ case "$1" in
;;
esac
chown -R opengnsys:opengnsys /opt/opengnsys/ogclient
chown -R opengnsys:opengnsys /opt/opengnsys/ogclient_log
#DEBHELPER#
exit 0

15
debian/ogclient.preinst vendored 100644
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
# Asegurarse de que el usuario exista
USER="opengnsys"
HOME_DIR="/opt/opengnsys"
if id "$USER" &>/dev/null; then
echo "El usuario $USER ya existe."
else
echo "Creando el usuario $USER con home en $HOME_DIR."
useradd -m -d "$HOME_DIR" -s /bin/bash "$USER"
fi
exit 0

View File

@ -1,7 +1,7 @@
[ogclient]
comment = OpenGnsys Client
browseable = no
writeable = no
writeable = yes
locking = no
path = /opt/opengnsys/ogclient
guest ok = no

Binary file not shown.

View File

@ -0,0 +1,49 @@
#!/usr/bin/python3
# Proceso general de arranque de OpenGnsys Client.
import os
import re
import subprocess
import ogGlobals
from NetLib import ogGetIpAddress
ogstatus = os.environ.get ('ogstatus', '')
ogcore = os.environ.get ('ogcore', '')
oglog = os.environ.get ('oglog', '')
oggroup = os.environ.get ('OGGROUP', '')
ogactiveadmin = os.environ.get ('ogactiveadmin', '')
LANG = os.environ.get ('LANG', 'es_ES')
LANG = LANG[0:LANG.index('_')]
LOGLEVEL=5
# Matando plymount para inicir browser o shell
subprocess.run (['pkill', '-9', 'plymouthd'])
# Arranque de OpenGnsys Client daemon (socket).
print (ogGlobals.lang.MSG_LAUNCHCLIENT)
# Indicar fichero de teclado de Qt para el idioma especificado (tipo "es.qmap").
if os.path.exists (f'/usr/local/etc/{LANG}.qmap'):
os.environ['QWS_KEYBOARD'] = f'TTY:keymap=/usr/local/etc/{LANG}.qmap'
if os.path.exists ('/usr/share/OGAgent/opengnsys/linux/OGAgentService.py') and ogstatus != 'offline':
os.chdir ('/usr/share/OGAgent')
os.environ['OGAGENTCFG_OGCORE_IP'] = ogcore
os.environ['OGAGENTCFG_OGLOG_IP'] = oglog
os.environ['OGAGENTCFG_URLMENU_SCHEME'] = 'http'
os.environ['OGAGENTCFG_URLMENU_IP'] = '127.0.0.1'
os.environ['OGAGENTCFG_URLMENU_PORT'] = '81'
subprocess.run (['python3', '-m', 'opengnsys.linux.OGAgentService', 'fg'])
else:
ip = ogGetIpAddress()
OGMENU = ''
for FILE in [index, oggroup, ip]:
if not FILE: continue
m = f'{ogGlobals.OGCAC}/menus/{FILE}.html'
if os.path.exists (m): OGMENU = m
subprocess.run ([f'{ogGlobals.OPENGNSYS}/bin/launch_browser', m])
# Si fallo en cliente y modo "admin", cargar shell; si no, salir.
if ogactiveadmin == 'true':
subprocess.run (['bash'])

View File

@ -21,20 +21,26 @@ echo "${MSG_LAUNCHCLIENT:-.}"
if [ -f "/usr/share/OGAgent/opengnsys/linux/OGAgentService.py" -a "$ogstatus" != "offline" ]; then
# Ejecutar servicio cliente.
cd /usr/share/OGAgent
export OGAGENTCFG_OGCORE_IP=$ogcore
export OGAGENTCFG_OGCORE_IP=$ogcore
export OGAGENTCFG_OGLOG_IP=$oglog
export OGAGENTCFG_URLMENU_IP=$ogcore
python3 -m opengnsys.linux.OGAgentService fg
export OGAGENTCFG_URLMENU_SCHEME=http
export OGAGENTCFG_URLMENU_IP=127.0.0.1
export OGAGENTCFG_URLMENU_PORT=81
(
## remove bash functions and some OG vars from the agent's environment
unset -f $(declare -F |awk '/og[A-Z]|NT[A-Z]/ { print $3 }')
unset $(declare |awk -F= '/^MSG_|^OG_ERR_/ { print $1 }')
python3 -m opengnsys.linux.OGAgentService fg
)
else
for FILE in index $OGGROUP $(ogGetIpAddress)
do
[ -f $OGCAC/menus/$FILE.html ] && OGMENU="$OGCAC/menus/$FILE.html"
done
echo "exec /usr/bin/OGBrowser $OGMENU" > /home/root/
/usr/bin/OGBrowser -qws $OGMENU
$OPENGNSYS/bin/launch_browser $OGMENU
fi
# Si fallo en cliente y modo "admin", cargar shell; si no, salir.
if [ "$ogactiveadmin" == "true" ]; then
bash
fi
fi

View File

@ -0,0 +1,44 @@
#!/usr/bin/python3
## early init
import os
import sys
OPENGNSYS = os.environ.get ('OPENGNSYS', '/opt/opengnsys')
libs = [f'{OPENGNSYS}/lib/python3', '/usr/share/opengnsys-modules/python3/dist-packages']
os.environ['PYTHONPATH'] = ':'.join (libs)
for l in libs: sys.path.insert (0, l)
## end
import subprocess
import ogGlobals
from InitLib import loadenviron, write_profile, clean_esp, fileslinks, loadmodules, metadevs, mountrepo, poweroff, filebeat, stunnel, dbus, otherservices, runhttplog
IPV4ADDR = os.environ.get ('IPV4ADDR', '')
OG_IP = os.environ.get ('OG_IP', '')
loadenviron()
write_profile()
# Funciones de inicio.
clean_esp()
fileslinks()
loadmodules()
metadevs()
mountrepo()
poweroff()
filebeat()
stunnel()
dbus()
otherservices()
runhttplog()
if IPV4ADDR and os.path.exists (f'{ogGlobals.OGETC}/init/{IPV4ADDR}.sh'):
if OG_IP: subprocess.run ([f'{ogGlobals.OGETC}/init/{OG_IP}.sh'])
elif os.path.exists (f'{ogGlobals.OGETC}/init.py'):
subprocess.run ([f'{ogGlobals.OGETC}/init.py'])
else:
print ('No se ha encontrado script de inicio')
subprocess.run (['halt'])

View File

@ -0,0 +1,12 @@
#!/bin/bash
F=/opt/opengnsys/functions
## BootLib.bootOs() makes a copy of grub.cfg in /boot/grub within the ESP
## clean it up
if $F/ogIsEfiActive; then
ESP=$($F/ogGetEsp)
MNTPT=$($F/ogMount $ESP)
rm -f $MNTPT/boot/grub/grub.cfg
$F/ogUnmount $ESP
fi

View File

@ -1,12 +1,19 @@
#!/bin/bash
if grep -q pyinit=false /proc/cmdline; then
echo "shell init"
else
echo "python init"
exec /opt/opengnsys/etc/preinit.py
fi
# Cargar entorno de OpenGnsys
set -a
source /opt/opengnsys/etc/preinit/loadenviron.sh
# Scripts de inicio.
for f in fileslinks loadmodules metadevs mountrepo poweroff otherservices; do
$OGETC/preinit/$f.sh
for f in cleanesp fileslinks loadmodules metadevs mountrepo poweroff filebeat otherservices; do
source $OGETC/preinit/$f.sh
done
unset f

View File

@ -0,0 +1,19 @@
#!/bin/bash
F=/etc/filebeat/filebeat.yml
OPENSEARCH_PORT=9200
if [ -f $F ]; then
PASS=$(grep "^[ ]*\(export \)\?OPTIONS=" /scripts/ogfunctions 2>&1 |sed 's/\(.*\)pass=\(\w*\)\(.*\)/\2/') ## taken from a sibling script
PASS=${PASS:-"og"}
PASS=OG+$(echo -n $PASS |sha256sum |cut -c1-12) ## og KDF
chmod 0600 $F
sed -i -e "s/__OGLOG_IP__/$oglog/g" \
-e "s/__OGLOG_PORT__/$OPENSEARCH_PORT/g" \
-e "s/__OPENSEARCH_PASSWORD__/$PASS/g" \
$F
unset PASS
mkdir -p /var/log/filebeat
/usr/bin/filebeat -c $F --path.home /usr/share/filebeat --path.config /etc/filebeat --path.data /var/lib/filebeat --path.logs /var/log/filebeat &
fi

View File

@ -7,32 +7,71 @@
#@date 2012-01-12
#*/
# Montar efivar filesystem
ogIsEfiActive && mount -t efivarfs none /sys/firmware/efi/efivars
# Lanzar servicios complementarios del cliente.
echo "${MSG_OTHERSERVICES:-.}"
# Iniciar rsyslog, si es necesario.
# stunnel start
cat >/etc/stunnel/menu.conf <<__EOF__
setuid = stunnel4
setgid = stunnel4
pid = /var/run/stunnel4/menu.pid
foreground = yes
debug = info
[menu]
client = yes
accept = 127.0.0.1:81
connect = $ogcore:8443
__EOF__
if [[ true == "$ogusetls" ]]; then
if [[ true == "$ogverifytls" ]]; then
## use tls and verify
cat >>/etc/stunnel/menu.conf <<__EOF__
cert = /opt/opengnsys/etc/ogagent.crt
key = /opt/opengnsys/etc/ogagent.key
CAfile = /opt/opengnsys/etc/ca.crt
requireCert = yes
verifyChain = yes
__EOF__
else
## use tls but not verify
cat >>/etc/stunnel/menu.conf <<__EOF__
cert = /opt/opengnsys/etc/ogagent.crt
key = /opt/opengnsys/etc/ogagent.key
CAfile = /opt/opengnsys/etc/ca.crt
requireCert = no
verifyChain = no
__EOF__
fi
else
## don't use tls
cat >>/etc/stunnel/menu.conf <<__EOF__
requireCert = no
verifyChain = no
__EOF__
fi
mkdir -p /var/run/stunnel4; chown stunnel4:stunnel4 /var/run/stunnel4
stunnel /etc/stunnel/menu.conf &>/var/log/stunnel4/menu.log &
# stunnel end
# dbus
if [ -e /etc/dbus-1/system.d/ogbrowser.conf ]; then
mkdir -p /run/dbus
DBUS_SESSION_BUS_ADDRESS=$(dbus-daemon --print-address --system --nosyslog)
export DBUS_SESSION_BUS_ADDRESS
dbus-monitor --system &>/var/log/dbus-monitor.log &
fi
[ -S /dev/log ] || service rsyslog start
# Adpatar la clave de "root" para acceso SSH.
PASS=$(grep "^[ ]*\(export \)\?OPTIONS=" /scripts/ogfunctions 2>&1 | \
sed 's/\(.*\)pass=\(\w*\)\(.*\)/\2/')
# root password
PASS=$(grep "^[ ]*\(export \)\?OPTIONS=" /scripts/ogfunctions 2>&1 | sed 's/\(.*\)pass=\(\w*\)\(.*\)/\2/')
PASS=${PASS:-"og"}
echo -ne "$PASS\n$PASS\n" | passwd root 2>/dev/null
# Cargar el entorno OpenGnsys en conexión SSH.
cp -a $OPENGNSYS/etc/preinit/loadenviron.sh /etc/profile.d/
# Arrancar SSH.
/etc/init.d/ssh start &>/dev/null
# Desactivado apagado de monitor.
#setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1
# Activado WOL en la interfaz usada en arranque PXE.
ethtool -s $DEVICE wol g 2>/dev/null
# TODO Localizar correctamente el script de arranque.
#setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1 ## apagado de monitor
ethtool -s $DEVICE wol g 2>/dev/null ## Activado WOL en la interfaz usada en arranque PXE.
[ -f /opt/opengnsys/scripts/runhttplog.sh ] && /opt/opengnsys/scripts/runhttplog.sh 2>/dev/null

View File

@ -19,6 +19,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogAddCmd (args.disk, args.par, args.cmdfile, args.cmd)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -18,6 +18,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogAddRegistryKey (args.mntpt, args.hive, args.k)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -19,6 +19,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogAddRegistryValue (args.mntpt, args.hive, args.k, args.vtype)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -39,6 +39,7 @@ elif 4 == len (sys.argv):
elif 5 == len (sys.argv):
ret = ogBoot (args.disk, args.par, not not args.nvramperm, args.params)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -20,6 +20,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogBootLoaderDefaultEntry (args.disk, args.par, args.diskdefault, args.pardefault)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -20,6 +20,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogBootLoaderDeleteEntry (args.disk, args.par, args.diskdel, args.pardel)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -27,6 +27,7 @@ if 3 == len (sys.argv):
elif 5 == len (sys.argv):
ret = ogBootLoaderHidePartitions (args.disk, args.par, args.datadisk, args.datapar)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -18,6 +18,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogBootLoaderOgliveDefaultEntry (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -19,6 +19,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogBootLoaderSetTimeOut (args.disk, args.par, args.timeout)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogBootMbrGeneric (args.disk)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogBootMbrXP (args.disk)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -26,6 +26,7 @@ if 3 == len (sys.argv):
elif 4 == len (sys.argv):
ret = ogCalculateChecksum (container=f'{args.disk} {args.par}', file=args.file)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -26,6 +26,7 @@ if 3 == len (sys.argv):
elif 4 == len (sys.argv):
ret = ogCalculateFullChecksum (container=f'{args.disk} {args.par}', file=args.file)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogChangeRepo (args.ip_repo)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogCheckFs (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogCheckIpAddress (args.ip)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogCleanLinuxDevices (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogCleanOs (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogConfigureFstab (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogConfigureOgagent (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogCopyEfiBootLoader (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -19,6 +19,7 @@ if 5 == len (sys.argv):
args = parser.parse_args()
src = { 'container': args.src_container, 'file': args.src_file }
dst = { 'container': args.dst_container, 'file': args.dst_file }
elif 7 == len (sys.argv):
parser.add_argument ('src_disk')
parser.add_argument ('src_par')
@ -29,6 +30,31 @@ elif 7 == len (sys.argv):
args = parser.parse_args()
src = { 'disk': args.src_disk, 'par': args.src_par, 'file': args.src_file }
dst = { 'disk': args.dst_disk, 'par': args.dst_par, 'file': args.dst_file }
elif 4 == len (sys.argv):
## can be either:
## - src_container src_file dst_file
## - src_file dst_container dst_file
if 'REPO' == sys.argv[1] or 'CACHE' == sys.argv[1]:
## we are in "src_container src_file dst_file"
parser.add_argument ('src_container')
parser.add_argument ('src_file')
parser.add_argument ('dst_file')
args = parser.parse_args()
src = { 'container': args.src_container, 'file': args.src_file }
dst = { 'file': args.dst_file }
elif 'REPO' == sys.argv[2] or 'CACHE' == sys.argv[2]:
## we are in "src_file dst_container dst_file"
parser.add_argument ('src_file')
parser.add_argument ('dst_container')
parser.add_argument ('dst_file')
args = parser.parse_args()
src = { 'file': args.src_file }
dst = { 'container': args.dst_container, 'file': args.dst_file }
else:
ogHelp ('ogCopyFile', 'ogCopyFile [ str_repo | int_ndisk int_npartition ] path_source [ str_repo | int_ndisk int_npartition ] path_target', ['ogCopyFile REPO newfile.txt 1 2 /tmp/newfile.txt'])
sys.exit (1)
elif 6 == len (sys.argv):
## can be either:
## - src_disk src_par src_file dst_container dst_file
@ -36,7 +62,7 @@ elif 6 == len (sys.argv):
try:
num = int (sys.argv[1]) ## raises ValueError if sys.argv[1] doesn't look like a number
## "src_disk src_par src_file dst_container dst_file"
## we are in "src_disk src_par src_file dst_container dst_file"
parser.add_argument ('src_disk')
parser.add_argument ('src_par')
parser.add_argument ('src_file')
@ -46,7 +72,7 @@ elif 6 == len (sys.argv):
src = { 'disk': args.src_disk, 'par': args.src_par, 'file': args.src_file }
dst = { 'container': args.dst_container, 'file': args.dst_file }
except:
## "src_container src_file dst_disk dst_par dst_file"
## we are in "src_container src_file dst_disk dst_par dst_file"
parser.add_argument ('src_container')
parser.add_argument ('src_file')
parser.add_argument ('dst_disk')
@ -55,8 +81,12 @@ elif 6 == len (sys.argv):
args = parser.parse_args()
src = { 'container': args.src_container, 'file': args.src_file }
dst = { 'disk': args.dst_disk, 'par': args.dst_par, 'file': args.dst_file }
else:
ogHelp ('ogCopyFile', 'ogCopyFile [ str_repo | int_ndisk int_npartition ] path_source [ str_repo | int_ndisk int_npartition ] path_target', ['ogCopyFile REPO newfile.txt 1 2 /tmp/newfile.txt'])
sys.exit (1)
ret = ogCopyFile (src, dst)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -30,6 +30,7 @@ elif 3 == len (sys.argv):
elif 4 == len (sys.argv):
ret = ogCreateCache (ndsk=int(args.disk), part=int(args.part), sizecache=int(args.sizecache))
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -1,23 +0,0 @@
#!/usr/bin/python3
import sys
import argparse
from SystemLib import ogHelp
from DiskLib import ogCreateGptPartitions
if 2 == len (sys.argv) and 'help' == sys.argv[1]:
#parser.print_help() sale en inglés aunque la locale indique otra cosa
ogHelp ('ogCreateGptPartitions', 'ogCreateGptPartitions int_ndisk str_parttype:int_partsize ...', ['ogCreateGptPartitions 1 NTFS:10000000 EXT3:5000000 LINUX-SWAP:1000000'])
sys.exit (0)
parser = argparse.ArgumentParser (add_help=False)
parser.add_argument ('disk')
parser.add_argument ('parts', nargs='+')
args = parser.parse_args()
ret = ogCreateGptPartitions (args.disk, args.parts)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)
else: print (ret)

View File

@ -31,6 +31,7 @@ if 5 == len (sys.argv):
elif 7 == len (sys.argv):
ret = ogCreateImage (args.disk, args.par, args.container, args.imgfile, args.tool, args.level)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -19,6 +19,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogCreateImageSyntax (args.dev, args.imgfile, args.tool, args.level)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -24,6 +24,7 @@ if 2 == len (sys.argv):
elif 3 == len (sys.argv):
ret = ogCreatePartitionTable (args.disk, args.createptt)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ args = parser.parse_args()
ret = ogCreatePartitions (args.disk, args.parts)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -25,6 +25,8 @@ if 4 == len (sys.argv):
ret = ogCreateTorrent (container=args.container, file=args.file, ip_bttrack=args.ip_bttrack)
elif 5 == len (sys.argv):
ret = ogCreateTorrent (disk=args.disk, par=args.par, file=args.file, ip_bttrack=args.ip_bttrack)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -7,6 +7,7 @@ from CacheLib import ogDeleteCache
ret = ogDeleteCache()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -26,6 +26,7 @@ if 3 == len (sys.argv):
elif 4 == len (sys.argv):
ret = ogDeleteFile (container=f'{args.disk} {args.par}', file=args.file)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogDeletePartitionTable (args.disk)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -18,6 +18,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogDeleteRegistryKey (args.mntpt, args.hive, args.k)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -18,6 +18,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogDeleteRegistryValue (args.mntpt, args.hive, args.k)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -26,6 +26,7 @@ if 3 == len (sys.argv):
elif 4 == len (sys.argv):
ret = ogDeleteTree (container=f'{args.disk} {args.par}', file=args.file)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogDevToDisk (args.arg_dev)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogDiskToDev (args.arg_disk, args.arg_part)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -18,6 +18,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogEcho (args.logtypes, args.loglevel, args.msg)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -48,6 +48,7 @@ for arg in sys.argv[1:]:
args = tuple (args)
ret = ogExecAndLog (logtypes, fun, *args, **kwargs)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogExtendFs (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogFindCache ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogFixBootSector (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -22,6 +22,7 @@ else:
args = parser.parse_args()
ret = ogFormat (args.disk, args.par, args.fs, args.label)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogFormatCache ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -19,6 +19,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogFormatFs (args.disk, args.par, args.type, args.label)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetArch ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetBootMbr (args.disk)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetCacheSize ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -7,6 +7,7 @@ from CacheLib import ogGetCacheSpace
ret = ogGetCacheSpace()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetCaller ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetDiskSize (args.disk)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetDiskType (args.dev)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetEsp ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -18,6 +18,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetFreeSize (args.disk, args.part, args.unit)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -18,6 +18,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetFsSize (args.disk, args.par, args.unit)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetFsType (args.disk, args.part)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetHivePath (args.mntpt, args.hive)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetHostname ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetImageCompressor (args.container, args.filename)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetImageInfo (args.imgfile)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetImageProgram (args.container, args.filename)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetImageSize (args.repo, args.imgname)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetImageType (args.repo, args.imgname)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetIpAddress ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -24,6 +24,7 @@ if 2 == len (sys.argv):
elif 3 == len (sys.argv):
ret = ogGetLastSector (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetMacAddress ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetMountPoint (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetOsType (args.disk, args.partition)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetOsUuid (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetOsVersion (args.disk, args.part)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -26,6 +26,7 @@ if 3 == len (sys.argv):
elif 4 == len (sys.argv):
ret = ogGetParentPath (src=f'{args.disk} {args.par}', file=args.file)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetPartitionActive (args.disk)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetPartitionId (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetPartitionSize (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetPartitionTableType (args.disk)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetPartitionType (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetPartitionsNumber (args.disk)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -30,6 +30,7 @@ elif 3 == len (sys.argv):
elif 4 == len (sys.argv):
ret = ogGetPath (src=f'{args.disk} {args.par}', file=args.file)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -18,6 +18,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetRegistryValue (args.mntpt, args.hive, args.k)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetRepoIp ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -11,6 +11,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
ret = ogGetSerialNumber()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -16,6 +16,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetServerIp ()
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGetWindowsName (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -17,6 +17,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGrub4dosInstallMbr (args.disk, args.par)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -19,6 +19,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGrubAddOgLive (args.disk, args.par, args.timeout, args.offline)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -19,6 +19,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGrubDefaultEntry (args.disk, args.par, args.diskdefault, args.pardefault)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

View File

@ -19,6 +19,7 @@ if 2 == len (sys.argv) and 'help' == sys.argv[1]:
args = parser.parse_args()
ret = ogGrubDeleteEntry (args.disk, args.par, args.diskdel, args.pardel)
if ret is None: sys.exit (1)
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)

Some files were not shown because too many files have changed in this diff Show More