Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | probe: detect 64 bit operating systems | Jose M. Guisado | 2022-05-09 | 2 | -2/+56 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenGnsys partition images store OS information, including the OS name appended with "64 bits" when the OS is meant for 64 bit machines. The detected OS name when probing (refresh) is important, if it differs from what's stored in the DB OpenGnsys will wipe last image restored information when running a refresh. See actualizaConfiguracion from legacy ogserver (ogAdmServer.c) code: dato = dbi_result_get_uint(result, "idnombreso"); if (idsoi == dato) { swu = false; } ... if (swu) { result_update = dbi_conn_queryf(dbi->conn, "UPDATE ordenadores_particiones SET " " codpar=0x%s," " tamano=%s," " uso=%s," " idsistemafichero=%d," " idnombreso=%d," " idimagen=0," " idperfilsoft=0," " fechadespliegue=NULL" " WHERE idordenador=%d AND numdisk=%s AND numpar=%s", | ||||
* | utils: fix winreghives path string | Jose M. Guisado | 2022-04-28 | 1 | -1/+1 |
| | | | | | | | Adds missing slash in the windows reghives path f-string. When calling os_probe inside refresh (live/ogOperations) the mountpoint is passed without a trailing slash. | ||||
* | live: detect cache partitions in new refresh | Jose M. Guisado | 2022-04-28 | 1 | -0/+9 |
| | | | | | | | Detects OpenGnsys cache partition when building the partition setup of a live system. OpenGnsys labels a Linux/ext4 partition as "CACHE". | ||||
* | utils: decode probing subprocess stdout | Jose M. Guisado | 2022-04-27 | 1 | -2/+2 |
| | | | | | | Cannot replace str ('\n') when stdout is a bytes object. Also fixes some typos (i.e: proc_releaseid stdout was used twice). | ||||
* | Add utils modules | Jose M. Guisado | 2022-04-21 | 5 | -0/+273 |
* disk.py Disk discovery * fs.py Uses psutil to fetch fs usage information * menu.py ogBrowser menu generation * net.py: gets nic status information IP address, MAC address and ethernet speed. * probe.py: probes mountpoints for operating systems Uses hivexget command to try fetching Windows installation information. Looks for /etc/os-release for probing linux systems. |