2 * Copyright (c)2004 The DragonFly Project. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in
13 * the documentation and/or other materials provided with the
16 * Neither the name of the DragonFly Project nor the names of its
17 * contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24 * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
31 * OF THE POSSIBILITY OF SUCH DAMAGE.
36 * Installer Function : Install OS Files.
37 * $Id: fn_install.c,v 1.74 2006/04/18 19:43:48 joerg Exp $
43 #define SOURCES_CONF_FILE "/usr/local/share/dfuibe_installer/sources.conf"
47 #define _(String) gettext (String)
49 #define _(String) (String)
52 #include "libaura/mem.h"
53 #include "libaura/buffer.h"
54 #include "libaura/fspred.h"
56 #include "libdfui/dfui.h"
57 #include "libdfui/system.h"
59 #include "libinstaller/commands.h"
60 #include "libinstaller/confed.h"
61 #include "libinstaller/diskutil.h"
62 #include "libinstaller/functions.h"
63 #include "libinstaller/uiutil.h"
66 #include "pathnames.h"
69 static const char *pfs_mountpt[8] = {"/var", "/tmp", "/usr", "/home",
70 "/usr/obj", "/var/crash", "/var/tmp", NULL};
72 static const int pfs_nohistory[8] = {0, 1, 0, 0, 1, 1, 1};
75 handle_pfs(struct i_fn_args *a, struct commands *cmds)
80 * Create PFS root directory.
82 command_add(cmds, "%s%s -p %smnt/pfs",
83 a->os_root, cmd_name(a, "MKDIR"),
86 for (j = 0; pfs_mountpt[j] != NULL; j++) {
88 * We have a PFS for a subdirectory, e.g. /var/crash, so we
89 * need to create /pfs/var.crash
91 if (rindex(pfs_mountpt[j]+1, '/') != NULL) {
92 command_add(cmds, "%s%s pfs-master %smnt/pfs%s.%s",
93 a->os_root, cmd_name(a, "HAMMER"),
94 a->os_root, dirname(pfs_mountpt[j]),
95 basename(pfs_mountpt[j]));
96 command_add(cmds, "%s%s -p %smnt%s",
97 a->os_root, cmd_name(a, "MKDIR"),
98 a->os_root, pfs_mountpt[j]);
99 command_add(cmds, "%s%s %smnt/pfs%s.%s %smnt%s",
100 a->os_root, cmd_name(a, "MOUNT_NULL"),
101 a->os_root, dirname(pfs_mountpt[j]),
102 basename(pfs_mountpt[j]),
103 a->os_root, pfs_mountpt[j]);
104 if (pfs_nohistory[j] == 1)
105 command_add(cmds, "%s%s nohistory %smnt%s",
106 a->os_root, cmd_name(a, "CHFLAGS"),
107 a->os_root, pfs_mountpt[j]);
109 command_add(cmds, "%s%s pfs-master %smnt/pfs%s",
110 a->os_root, cmd_name(a, "HAMMER"),
111 a->os_root, pfs_mountpt[j]);
112 command_add(cmds, "%s%s -p %smnt%s",
113 a->os_root, cmd_name(a, "MKDIR"),
114 a->os_root, pfs_mountpt[j]);
115 command_add(cmds, "%s%s %smnt/pfs%s %smnt%s",
116 a->os_root, cmd_name(a, "MOUNT_NULL"),
117 a->os_root, pfs_mountpt[j],
118 a->os_root, pfs_mountpt[j]);
124 * fn_install_os: actually put DragonFly on a disk.
127 fn_install_os(struct i_fn_args *a)
129 struct subpartition *sp;
130 struct commands *cmds;
132 int i, seen_it, prefix, j;
135 char cp_src[64][256];
140 * If SOURCES_CONF_FILE exists, lets read in and
141 * populate our copy sources. If it does not exist
142 * simply set the list by hand.
144 if (!is_file("%s%s", a->os_root, SOURCES_CONF_FILE)) {
145 i_log(a, "Using internal copy sources table.");
146 strcpy(cp_src[0],"/COPYRIGHT");
147 strcpy(cp_src[1],"/bin");
148 strcpy(cp_src[2],"/boot");
149 strcpy(cp_src[3],"/cdrom");
150 strcpy(cp_src[4],"/dev");
151 strcpy(cp_src[5],"/etc");
152 strcpy(cp_src[6],"/root");
153 strcpy(cp_src[7],"/sbin");
154 strcpy(cp_src[8],"/sys");
155 strcpy(cp_src[9],"/tmp");
156 strcpy(cp_src[10],"/usr/Makefile");
157 strcpy(cp_src[11],"/usr/bin");
158 strcpy(cp_src[12],"/usr/games");
159 strcpy(cp_src[13],"/usr/include");
160 strcpy(cp_src[14],"/usr/lib");
161 strcpy(cp_src[15],"/usr/libdata");
162 strcpy(cp_src[16],"/usr/libexec");
163 strcpy(cp_src[17],"/usr/local");
164 strcpy(cp_src[18],"/usr/obj");
165 strcpy(cp_src[19],"/usr/pkg");
166 strcpy(cp_src[20],"/usr/sbin");
167 strcpy(cp_src[21],"/usr/share");
168 strcpy(cp_src[22],"/usr/src");
169 strcpy(cp_src[23],"/var");
170 strcpy(cp_src[24],"");
172 snprintf(file_path, 256, "%s%s", a->os_root, SOURCES_CONF_FILE);
173 sources_conf = fopen(file_path, "r");
174 i_log(a, "Reading %s%s", a->os_root, SOURCES_CONF_FILE);
175 while(fgets(line, 256, sources_conf) != NULL && lines < 63) {
177 line[strlen(line)-1] = '\0';
178 strlcpy(cp_src[lines], line, 256);
179 i_log(a,"Adding %s to copy source table.", cp_src[lines]);
182 i_log(a,"Added %i total items to copy source table.", lines);
183 strcpy(cp_src[lines], "");
184 fclose(sources_conf);
187 cmds = commands_new();
190 * If swap isn't mounted yet, mount it.
192 if (measure_activated_swap(a) == 0) {
193 for (sp = slice_subpartition_first(storage_get_selected_slice(a->s));
194 sp != NULL; sp = subpartition_next(sp)) {
195 if (!subpartition_is_swap(sp))
197 command_add(cmds, "%s%s %sdev/%s",
199 cmd_name(a, "SWAPON"),
201 subpartition_get_device_name(sp));
206 * Unmount anything already mounted on /mnt.
208 unmount_all_under(a, cmds, "%smnt", a->os_root);
210 for (sp = slice_subpartition_first(storage_get_selected_slice(a->s));
211 sp != NULL; sp = subpartition_next(sp)) {
212 if (strcmp(subpartition_get_mountpoint(sp), "/") == 0) {
213 if (use_hammer == 1) {
214 command_add(cmds, "%s%s %sdev/%s %smnt%s",
215 a->os_root, cmd_name(a, "MOUNT_HAMMER"),
217 subpartition_get_device_name(sp),
219 subpartition_get_mountpoint(sp));
221 command_add(cmds, "%s%s %sdev/%s %smnt%s",
222 a->os_root, cmd_name(a, "MOUNT"),
224 subpartition_get_device_name(sp),
226 subpartition_get_mountpoint(sp));
232 * Create mount points and mount subpartitions on them.
234 for (sp = slice_subpartition_first(storage_get_selected_slice(a->s));
235 sp != NULL; sp = subpartition_next(sp)) {
236 if (subpartition_is_swap(sp)) {
237 #ifdef AUTOMATICALLY_ENABLE_CRASH_DUMPS
239 * Set this subpartition as the dump device.
241 if (subpartition_get_capacity(sp) < storage_get_memsize(a->s))
244 command_add(cmds, "%s%s -v %sdev/%s",
245 a->os_root, cmd_name(a, "DUMPON"),
247 subpartition_get_device_name(sp));
249 asprintf(&string, "/dev/%s",
250 subpartition_get_device_name(sp));
251 config_var_set(rc_conf, "dumpdev", string);
253 config_var_set(rc_conf, "dumpdir", "/var/crash");
258 if (use_hammer == 0) {
259 /* / is already mounted */
260 if (strcmp(subpartition_get_mountpoint(sp), "/") != 0) {
261 command_add(cmds, "%s%s -p %smnt%s",
262 a->os_root, cmd_name(a, "MKDIR"),
264 subpartition_get_mountpoint(sp));
265 /* Don't mount it if it's MFS-backed. */
266 if (subpartition_is_mfsbacked(sp))
268 command_add(cmds, "%s%s %sdev/%s %smnt%s",
269 a->os_root, cmd_name(a, "MOUNT"),
271 subpartition_get_device_name(sp),
273 subpartition_get_mountpoint(sp));
275 } else if (strcmp(subpartition_get_mountpoint(sp), "/boot") == 0) {
276 command_add(cmds, "%s%s -p %smnt%s",
277 a->os_root, cmd_name(a, "MKDIR"),
279 subpartition_get_mountpoint(sp));
280 command_add(cmds, "%s%s %sdev/%s %smnt%s",
281 a->os_root, cmd_name(a, "MOUNT"),
283 subpartition_get_device_name(sp),
285 subpartition_get_mountpoint(sp));
290 * Take care of HAMMER PFS.
296 * Actually copy files now.
299 for (i = 0; cp_src[i] != NULL && cp_src[i][0] != '\0'; i++) {
300 char *src, *dest, *dn, *tmp_dest;
305 * If dest would be on an MFS-backed
306 * mountpoint, don't bother copying it.
308 sp = subpartition_of(storage_get_selected_slice(a->s),
309 "%s%s", a->os_root, &dest[1]);
310 if (sp != NULL && subpartition_is_mfsbacked(sp)) {
315 * Create intermediate directories, if needed.
317 tmp_dest = aura_strdup(dest);
318 dn = dirname(tmp_dest);
319 if (is_dir("%s%s", a->os_root, &dn[1]) &&
320 !is_dir("%smnt%s", a->os_root, dn)) {
321 command_add(cmds, "%s%s -p %smnt%s",
322 a->os_root, cmd_name(a, "MKDIR"),
325 aura_free(tmp_dest, "directory name");
328 * If a directory by the same name but with the suffix
329 * ".hdd" exists on the installation media, cpdup that
330 * instead. This is particularly useful with /etc, which
331 * may have significantly different behaviour on the
332 * live CD compared to a standard HDD boot.
334 if (is_dir("%s%s.hdd", a->os_root, &dest[1]))
335 asprintf(&src, "%s.hdd", &dest[1]);
337 asprintf(&src, "%s", &dest[1]);
339 if (is_dir("%s%s", a->os_root, src) || is_file("%s%s", a->os_root, src)) {
341 * Cpdup the chosen file or directory onto the HDD.
342 * if it exists on the source.
344 cmd = command_add(cmds, "%s%s %s%s %smnt%s",
345 a->os_root, cmd_name(a, "CPDUP"),
348 command_set_log_mode(cmd, COMMAND_LOG_QUIET);
353 * Now, because cpdup does not cross mount points,
354 * we must copy anything that the user might've made a
355 * seperate mount point for (e.g. /usr/libdata/lint.)
357 for (sp = slice_subpartition_first(storage_get_selected_slice(a->s));
358 sp != NULL; sp = subpartition_next(sp)) {
360 * If the subpartition is a swap subpartition or an
361 * MFS-backed mountpoint, don't try to copy anything
364 if (subpartition_is_swap(sp) || subpartition_is_mfsbacked(sp))
368 * If the mountpoint doesn't even exist on the installation
369 * medium, don't try to copy anything from it! We assume
370 * it's an empty subpartition for the user's needs.
372 if (!is_dir("%s%s", a->os_root, &subpartition_get_mountpoint(sp)[1]))
376 * Don't bother copying the mountpoint IF:
377 * - we've already said to copy it, or something besides it
378 * (it's a prefix of something in cp_src); or
379 * - we haven't said to copy it
380 * (nothing in cp_src is a prefix of it.)
384 for (i = 0; cp_src[i] != NULL && cp_src[i][0] != '\0'; i++) {
385 if (strncmp(subpartition_get_mountpoint(sp), cp_src[i],
386 strlen(subpartition_get_mountpoint(sp))) == 0) {
390 if (strncmp(cp_src[i], subpartition_get_mountpoint(sp),
391 strlen(cp_src[i])) == 0) {
395 if (seen_it || !prefix)
399 * Otherwise, cpdup the subpartition.
401 * XXX check for .hdd-extended source dirs here, too,
402 * eventually - but for now, /etc.hdd will never be
403 * the kind of tricky sub-mount-within-a-mount-point
404 * that this part of the code is meant to handle.
406 cmd = command_add(cmds, "%s%s %s%s %smnt%s",
407 a->os_root, cmd_name(a, "CPDUP"),
408 a->os_root, &subpartition_get_mountpoint(sp)[1],
409 a->os_root, subpartition_get_mountpoint(sp));
410 command_set_log_mode(cmd, COMMAND_LOG_QUIET);
418 * If the user has both /var and /tmp subpartitions,
419 * symlink /var/tmp to /tmp.
421 if (subpartition_find(storage_get_selected_slice(a->s), "/tmp") != NULL &&
422 subpartition_find(storage_get_selected_slice(a->s), "/var") != NULL) {
423 command_add(cmds, "%s%s 1777 %smnt/tmp",
424 a->os_root, cmd_name(a, "CHMOD"), a->os_root);
425 command_add(cmds, "%s%s -rf %smnt/var/tmp",
426 a->os_root, cmd_name(a, "RM"), a->os_root);
427 command_add(cmds, "%s%s -s /tmp %smnt/var/tmp",
428 a->os_root, cmd_name(a, "LN"), a->os_root);
432 * If the user has /var, but no /tmp,
433 * symlink /tmp to /var/tmp.
435 if (subpartition_find(storage_get_selected_slice(a->s), "/tmp") == NULL &&
436 subpartition_find(storage_get_selected_slice(a->s), "/var") != NULL) {
437 command_add(cmds, "%s%s -rf %smnt/tmp",
438 a->os_root, cmd_name(a, "RM"), a->os_root);
439 command_add(cmds, "%s%s -s /var/tmp %smnt/tmp",
440 a->os_root, cmd_name(a, "LN"), a->os_root);
444 * If the user has /usr, but no /home,
445 * symlink /home to /usr/home.
447 if (subpartition_find(storage_get_selected_slice(a->s), "/home") == NULL &&
448 subpartition_find(storage_get_selected_slice(a->s), "/usr") != NULL) {
449 command_add(cmds, "%s%s -rf %smnt/home",
450 a->os_root, cmd_name(a, "RM"), a->os_root);
451 command_add(cmds, "%s%s %smnt/usr/home",
452 a->os_root, cmd_name(a, "MKDIR"), a->os_root);
453 command_add(cmds, "%s%s -s /usr/home %smnt/home",
454 a->os_root, cmd_name(a, "LN"), a->os_root);
458 * XXX check for other possible combinations too?
462 * Clean up. In case some file didn't make it, use rm -f
464 command_add(cmds, "%s%s -f %smnt/boot/loader.conf",
465 a->os_root, cmd_name(a, "RM"), a->os_root);
466 command_add(cmds, "%s%s -f %smnt/tmp/install.log",
467 a->os_root, cmd_name(a, "RM"), a->os_root);
470 * Copy pristine versions over any files we might have installed.
471 * This allows the resulting file tree to be customized.
473 for (i = 0; cp_src[i] != NULL && cp_src[i][0] != '\0'; i++) {
474 char *src, *dest, *dn, *tmp_dest;
480 * Get the directory that the desired thing to
483 tmp_dest = aura_strdup(dest);
484 dn = dirname(tmp_dest);
487 * If this dir doesn't exist in PRISTINE_DIR
488 * on the install media, just skip it.
490 if (!is_dir("%s%s%s", a->os_root, PRISTINE_DIR, dn)) {
491 aura_free(tmp_dest, _("directory name"));
496 * Create intermediate directories, if needed.
498 if (!is_dir("%smnt%s", a->os_root, dn)) {
499 command_add(cmds, "%s%s -p %smnt%s",
500 a->os_root, cmd_name(a, "MKDIR"),
503 aura_free(tmp_dest, "directory name");
506 * Cpdup the chosen file or directory onto the HDD.
508 cmd = command_add(cmds, "%s%s %s%s %smnt%s",
509 a->os_root, cmd_name(a, "CPDUP"),
513 cmd = command_add(cmds,
514 "%s%s %s%s%s %smnt%s",
515 a->os_root, cmd_name(a, "CPDUP"),
516 a->os_root, PRISTINE_DIR, src,
518 command_set_log_mode(cmd, COMMAND_LOG_QUIET);
522 * Rebuild the user database, to get rid of any extra users
523 * from the LiveCD that aren't supposed to be installed
524 * (copying a pristine master.passwd isn't enough.)
526 command_add(cmds, "%s%s -p -d %smnt/etc %smnt/etc/master.passwd",
527 a->os_root, cmd_name(a, "PWD_MKDB"), a->os_root, a->os_root);
529 /* Create missing directories. */
530 command_add(cmds, "%s%s %smnt/proc",
531 a->os_root, cmd_name(a, "MKDIR"), a->os_root);
532 command_add(cmds, "%s%s %smnt/mnt",
533 a->os_root, cmd_name(a, "MKDIR"), a->os_root);
535 /* Write new fstab. */
537 command_add(cmds, "%s%s '%s' >%smnt/etc/fstab",
538 a->os_root, cmd_name(a, "ECHO"),
539 "# Device\t\tMountpoint\tFStype\tOptions\t\tDump\tPass#",
542 for (sp = slice_subpartition_first(storage_get_selected_slice(a->s));
543 sp != NULL; sp = subpartition_next(sp)) {
544 if (strcmp(subpartition_get_mountpoint(sp), "swap") == 0) {
545 command_add(cmds, "%s%s '/dev/%s\t\tnone\t\tswap\tsw\t\t0\t0' >>%smnt/etc/fstab",
546 a->os_root, cmd_name(a, "ECHO"),
547 subpartition_get_device_name(sp),
549 } else if (use_hammer == 0) {
550 if (strcmp(subpartition_get_mountpoint(sp), "/") == 0) {
551 command_add(cmds, "%s%s '/dev/%s\t\t%s\t\tufs\trw\t\t1\t1' >>%smnt/etc/fstab",
552 a->os_root, cmd_name(a, "ECHO"),
553 subpartition_get_device_name(sp),
554 subpartition_get_mountpoint(sp),
556 } else if (subpartition_is_mfsbacked(sp)) {
557 command_add(cmds, "%s%s 'swap\t\t%s\t\t\tmfs\trw,-s%lu,-b%lu,-f%lu\t\t1\t1' >>%smnt/etc/fstab",
558 a->os_root, cmd_name(a, "ECHO"),
559 subpartition_get_mountpoint(sp),
560 subpartition_get_capacity(sp) * 2048,
561 subpartition_get_bsize(sp),
562 subpartition_get_fsize(sp),
565 command_add(cmds, "%s%s '/dev/%s\t\t%s\t\tufs\trw\t\t2\t2' >>%smnt/etc/fstab",
566 a->os_root, cmd_name(a, "ECHO"),
567 subpartition_get_device_name(sp),
568 subpartition_get_mountpoint(sp),
572 if (strcmp(subpartition_get_mountpoint(sp), "/") == 0) {
573 command_add(cmds, "%s%s '/dev/%s\t\t%s\t\thammer\trw\t\t1\t1' >>%smnt/etc/fstab",
574 a->os_root, cmd_name(a, "ECHO"),
575 subpartition_get_device_name(sp),
576 subpartition_get_mountpoint(sp),
578 command_add(cmds, "%s%s 'vfs.root.mountfrom=\"hammer:%s\"' >>%smnt/boot/loader.conf",
579 a->os_root, cmd_name(a, "ECHO"),
580 subpartition_get_device_name(sp),
582 } else if (strcmp(subpartition_get_mountpoint(sp), "/boot") == 0) {
583 command_add(cmds, "%s%s '/dev/%s\t\t%s\t\tufs\trw\t\t1\t1' >>%smnt/etc/fstab",
584 a->os_root, cmd_name(a, "ECHO"),
585 subpartition_get_device_name(sp),
586 subpartition_get_mountpoint(sp),
593 * Take care of HAMMER PFS null mounts.
595 if (use_hammer == 1) {
596 for (j = 0; pfs_mountpt[j] != NULL; j++) {
597 if (rindex(pfs_mountpt[j]+1, '/') != NULL)
598 command_add(cmds, "%s%s '/pfs%s.%s\t%s\t\tnull\trw\t\t0\t0' >>%smnt/etc/fstab",
599 a->os_root, cmd_name(a, "ECHO"),
600 dirname(pfs_mountpt[j]),
601 basename(pfs_mountpt[j]),
605 command_add(cmds, "%s%s '/pfs%s\t\t%s\t\tnull\trw\t\t0\t0' >>%smnt/etc/fstab",
606 a->os_root, cmd_name(a, "ECHO"),
613 command_add(cmds, "%s%s '%s' >>%smnt/etc/fstab",
614 a->os_root, cmd_name(a, "ECHO"),
615 "proc\t\t\t/proc\t\tprocfs\trw\t\t0\t0",
618 /* Backup the disklabel and the log. */
619 if (use_hammer == 0) {
620 command_add(cmds, "%s%s %s > %smnt/etc/disklabel.%s",
621 a->os_root, cmd_name(a, "DISKLABEL"),
622 slice_get_device_name(storage_get_selected_slice(a->s)),
624 slice_get_device_name(storage_get_selected_slice(a->s)));
626 command_add(cmds, "%s%s %s > %smnt/etc/disklabel.%s",
627 a->os_root, cmd_name(a, "DISKLABEL64"),
628 slice_get_device_name(storage_get_selected_slice(a->s)),
630 slice_get_device_name(storage_get_selected_slice(a->s)));
633 command_add(cmds, "%s%s %sinstall.log %smnt/var/log/install.log",
634 a->os_root, cmd_name(a, "CP"),
636 command_add(cmds, "%s%s 600 %smnt/var/log/install.log",
637 a->os_root, cmd_name(a, "CHMOD"), a->os_root);
639 /* Customize stuff here */
640 if(is_file("%susr/local/bin/after_installation_routines.sh")) {
641 command_add(cmds, "%susr/local/bin/after_installation_routines.sh",
642 a->os_root, _("Running after installation custom routines..."));
648 /* commands_preview(a->c, cmds); */
649 if (!commands_execute(a, cmds)) {
650 inform(a->c, _("%s was not fully installed."), OPERATING_SYSTEM_NAME);
658 * Unmount everything we mounted on /mnt. This is done in a seperate
659 * command chain, so that partitions are unmounted, even if an error
660 * occurs in one of the preceding commands, or it is cancelled.
662 cmds = commands_new();
663 unmount_all_under(a, cmds, "%smnt", a->os_root);
666 * Once everything is unmounted, if the install went successfully,
667 * make sure once and for all that the disklabel is bootable.
670 if (use_hammer == 0) {
671 command_add(cmds, "%s%s -B %s",
672 a->os_root, cmd_name(a, "DISKLABEL"),
673 slice_get_device_name(storage_get_selected_slice(a->s)));
675 command_add(cmds, "%s%s -B %s",
676 a->os_root, cmd_name(a, "DISKLABEL64"),
677 slice_get_device_name(storage_get_selected_slice(a->s)));
681 if (!commands_execute(a, cmds))
682 inform(a->c, _("Warning: subpartitions were not correctly unmounted."));