Skip to content
Snippets Groups Projects
  1. Aug 27, 2021
  2. Aug 05, 2021
  3. Mar 02, 2021
  4. Jun 26, 2019
  5. Jun 25, 2019
  6. Jun 18, 2019
  7. Jun 17, 2019
    • Peter Senna Tschudin's avatar
      debian: Update package creation files · 1ae70977
      Peter Senna Tschudin authored and Emanuele Aina's avatar Emanuele Aina committed
      
      This patch:
       - changes the package name to 'psdk'
       - adds a systemd service to call psdk -s on startup
       - fixes issues with debian files
      
      Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@collabora.com>
      1ae70977
    • Peter Senna Tschudin's avatar
      psdk.desktop: Change icon and Categories · 01e469f8
      Peter Senna Tschudin authored and Emanuele Aina's avatar Emanuele Aina committed
      
      Move the icon from the desktop to the System menu with other file system
      related tools. Also change the icon to make it more visible with the
      gray menu back ground.
      
      Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@collabora.com>
      01e469f8
    • Peter Senna Tschudin's avatar
      Automatically move configuration files to persistent storage · 2a7aaf96
      Peter Senna Tschudin authored and Emanuele Aina's avatar Emanuele Aina committed
      
      This patch adds ETC_FILES_AUTO that contains a list of configuration
      files that are moved to persistent storage during disk initialization.
      
      It also adds a systemd service file to scan the persistent storage for
      configuration files during boot. Minor changes were necessary so that
      psdk exits cleanly when no persistent disks are found and when no
      changes are required.
      
      On first boot after configuring a persistent disk, systemd will show:
      
       user@apertis:~$ sudo systemctl status psdk-conf-scan.service
       ● psdk-conf-scan.service - Scan for configuration files on persistent storage
          Loaded: loaded (/etc/systemd/system/psdk-conf-scan.service; enabled; vendor preset: enabled)
          Active: active (exited) since Mon 2019-06-17 09:06:39 UTC; 19s ago
         Process: 473 ExecStart=/usr/bin/psdk -s (code=exited, status=0/SUCCESS)
        Main PID: 473 (code=exited, status=0/SUCCESS)
      
       Jun 17 09:06:39 apertis sudo[538]: pam_unix(sudo:session): session opened for user root by (uid=0)
       Jun 17 09:06:39 apertis sudo[538]: pam_unix(sudo:session): session closed for user root
       Jun 17 09:06:39 apertis sudo[547]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/mv -f /etc/cntlm.conf /etc/cntlm
       Jun 17 09:06:39 apertis sudo[547]: pam_unix(sudo:session): session opened for user root by (uid=0)
       Jun 17 09:06:39 apertis sudo[547]: pam_unix(sudo:session): session closed for user root
       Jun 17 09:06:39 apertis sudo[551]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/ln -sf /home/etc/cntlm.conf /etc
       Jun 17 09:06:39 apertis sudo[551]: pam_unix(sudo:session): session opened for user root by (uid=0)
       Jun 17 09:06:39 apertis sudo[551]: pam_unix(sudo:session): session closed for user root
       Jun 17 09:06:39 apertis psdk[473]: Using configuration file found on persistent storage. From now on, changes made to /etc/cn
       Jun 17 09:06:39 apertis systemd[1]: Started Scan for configuration files on persistent storage.
      
      And then on following boots:
      
       user@apertis:~$ sudo systemctl status psdk-conf-scan.service
       ● psdk-conf-scan.service - Scan for configuration files on persistent storage
          Loaded: loaded (/etc/systemd/system/psdk-conf-scan.service; enabled; vendor preset: enabled)
          Active: active (exited) since Mon 2019-06-17 09:07:59 UTC; 5s ago
         Process: 471 ExecStart=/usr/bin/psdk -s (code=exited, status=0/SUCCESS)
        Main PID: 471 (code=exited, status=0/SUCCESS)
      
       Jun 17 09:07:59 apertis systemd[1]: Starting Scan for configuration files on persistent storage...
       Jun 17 09:07:59 apertis sudo[545]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/find /home/etc -type f
       Jun 17 09:07:59 apertis sudo[545]: pam_unix(sudo:session): session opened for user root by (uid=0)
       Jun 17 09:07:59 apertis sudo[545]: pam_unix(sudo:session): session closed for user root
       Jun 17 09:07:59 apertis psdk[471]: /etc/cntlm.conf is already on persistent storage. No action needed.
       Jun 17 09:07:59 apertis systemd[1]: Started Scan for configuration files on persistent storage.
      
      Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@collabora.com>
      2a7aaf96
    • Peter Senna Tschudin's avatar
      Add Zenity based gui · 437ef8b4
      Peter Senna Tschudin authored and Emanuele Aina's avatar Emanuele Aina committed
      
      This patch adds a new zenity based menu and a zenity based progress bar.
      The progress bar was required as copying up to 20GB of data can be very
      slow depending on the hardware configuration.
      
      Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@collabora.com>
      437ef8b4
    • Peter Senna Tschudin's avatar
      Rework the code to detect disks automatically · 1f6f2b06
      Peter Senna Tschudin authored and Emanuele Aina's avatar Emanuele Aina committed
      
      The user no longer needs to point to disk device nodes when initializing
      a new disk or when configuring the SDK to use an existing persistent
      disk. When using the command line, the only option that accepts a path
      is --etc to add a configuration file to persistent storage.
      
      A class Disks was added to handle disk detection based on the output of
      lsblk. This made it possible to replace various other methods and
      functions that were overlaping in functionality.
      
      Signed-off-by: default avatarPeter Senna Tschudin <peter.senna@collabora.com>
      1f6f2b06
  8. Jun 13, 2019
  9. Jun 12, 2019
  10. Jun 10, 2019
  11. Jun 08, 2019
Loading