Skip to content
Snippets Groups Projects
Commit 342dc6e6 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

Use system@ as prefix for a snapshot instead of migrate@

parent e3c8cbae
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ This subcommand make a snapshot called *named* containing a verbatim copy of the
`%%livedir%%`, `%%system_log%%` and `$HOME/%%user_log%%` for regular users are not taken into account.
The prefix `migrate@` is reserved for snapshot names used in automatic upgrade processes. Please consider to choose a different prefix for your personal snapshot names.
The prefix `system@` is reserved for snapshot names used in automatic upgrade processes. Please consider to choose a different prefix for your personal snapshot names.
#### Options
......
......@@ -159,8 +159,8 @@ int ssexec_snapshot_create(int argc, char const *const *argv, ssexec_t *info)
snapname = *argv ;
if (!system)
if (!str_start_with(snapname, "migrate@"))
log_die(LOG_EXIT_USER, "migrate@ is a reserved prefix for snapshot names -- please select a different one") ;
if (!str_start_with(snapname, "system@"))
log_die(LOG_EXIT_USER, "system@ is a reserved prefix for snapshot names -- please select a different one") ;
auto_strings(snapdir.s, info->base.s, SS_SNAPSHOT + 1) ;
......
......@@ -626,12 +626,12 @@ static void migrate_create_snap_0721(ssexec_t *info)
newargv[m++] = "snapshot" ;
newargv[m++] = "-s" ;
newargv[m++] = "migrate@0.7.2.1" ;
newargv[m++] = "system@0.7.2.1" ;
newargv[m] = 0 ;
PROG = "snapshot" ;
if (ssexec_snapshot_create(m, newargv, info))
log_dieu(LOG_EXIT_SYS, "create snapshot migrate@0.7.2.1") ;
log_dieu(LOG_EXIT_SYS, "create snapshot system@0.7.2.1") ;
PROG = prog ;
info->help = help ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment