- Jun 10, 2019
-
-
Peter Senna Tschudin authored
Add use instructions to the README file. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Previous message was confusing as if -s would overwrite the configuration file found on the persistent storage. This patch improves the message. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Change the license to MPL-2.0 to comply with Apertis licensing guidelines. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
- Jun 08, 2019
-
-
Peter Senna Tschudin authored
--scan will look for configuration files on the persistent storage and will use them on the SDK. This patch makes psdk print a message on each file successfully configured. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Add the debian directory and the basic set of files for creating a Debian package. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
This patch remove debug messages, add informative messages, and improve existing messages for a better usability. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Improve the help text for --scan making it more verbose. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
The --scan option scans the persistent storage for configuration files and configures the SDK to use each of them. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
This patch adds ConfigurationAlreadyPersistent exception and make changes to check_configuration_file() to use it. This patch also makes minor changes to a user message to include to path to the original file instead of only mentioning the original file. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Use splitlines() instead of split('\n'). Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Using os.path.{split,join} makes the code easier to read and is more reliable than concatenating parts of a path using slashes. This patch also removes PERSISTENT_ETC in favor of PERSISTENT_ETC_PREFIX. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
This patch changes the help text to explain that --init also configures the SDK for using the persistent disk after initialization. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
- Jun 07, 2019
-
-
Peter Senna Tschudin authored
This patch checks if the user has passed --configure and --init and shows the help message if the user does so. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
This patch updates the argparser configuration to handle two groups of arguments: - Configuration files management - Persistent disk management It also renames the positonal argument disk to path as it now can be used as a pointer to both a disk and a configuration file depending on which option is being used. This patch changes how the Disk() is initialized as if the user is managing configuration files, the script should manage to find the persistent disk. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
This patch adds check_configuration_file() and conf_to_persistent() functions that will be used to handle configuration files. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Fix typo of word partition. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
- May 31, 2019
-
-
Peter Senna Tschudin authored
Add more context to help messages. And include instructions on how to use the configuration files option. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
The script will also be used to handle files on /etc, rename it to be shorter and to remove disk from the name. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Improve help text that is shown when calling the script with -h. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Previously only --init was available. Add a --configure option to configure the SDK to use a disk that is already initialized. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Add a function to check if /etc/fstab was already updated to use the persistent workspace disk. This is useful for cases in which the user calls the prepare_persistent_disk.py script more than once. Currently the function only check if /etc/fstab was updated, and it will return true even if the /etc/fstab line pointing to the persistent workspace disk is commented. The rationale is that the script should detect only automated intervention as manual intervention will put the system in an unknown state from the perspective of the prepare_persistent_disk.py perspective. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Add configure_sdk() to avoid code duplication as this will be now called from two different paths. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Add a method to check if a disk is already initialized Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Remove debug code that is no longer needed. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Update the copyright header to include the author. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
- May 26, 2019
-
-
Peter Senna Tschudin authored
Fix pylint suggestions. Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-
Peter Senna Tschudin authored
Signed-off-by:
Peter Senna Tschudin <peter.senna@collabora.com>
-