lib/y2snapper_common.pm

y2snapper_common.pm

Library for creating snapshot by using YaST2 snapper.

y2snapper_select_current_conf

y2snapper_select_current_conf($ncurses);

Select Current Configuration on Snapshots screen $ncurses is used to check if it is ncurses.

y2snapper_close_snapper_module

y2snapper_close_snapper_module($ncurses);

Close snapper module $ncurses is used to check if it is ncurses.

y2snapper_adding_new_snapper_conf

y2snapper_adding_new_snapper_conf();

Setup another snapper config for /test (creating previously a subvolume for it) It allows to have more control over diffs amongs snapshots.

y2snapper_create_snapshot

y2snapper_create_snapshot($name);

Helper to create a snapper snapshot. $name is the name of snapshot.

y2snapper_new_snapshot

y2snapper_new_snapshot($ncurses);

Create a new snapshot.

$ncurses is used to check if it is ncurses. In ncurses it needs to focus to snapshots list manually.

y2snapper_apply_filesystem_changes

y2snapper_apply_filesystem_changes();

Performs any modification in filesystem and at least include some change under /test, which is the subvolume for testing.

y2snapper_show_changes_and_delete

y2snapper_show_changes_and_delete($ncurses);

Show changes of snapshot and delete it.

Use $ncurses to check if it is ncurses. Select in ncurses the first subvolume (root) in the tree and expand it.

y2snapper_clean_and_quit

y2snapper_clean_and_quit($module_name,$ncurses);

$module_name is YaST2 module yast2-snapper. Quit yast2-snapper and clean up the test data.

y2snapper_failure_analysis

y2snapper_failure_analysis();

Analyse failure and upload logs.