Changeset 6d06bbc in mainline


Ignore:
Timestamp:
2026-04-08T18:33:34Z (3 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
5bc87028, 68f13bcc, df2f4d9
Parents:
9f9d9067
Message:

If performing OS upgrade, sysinst should say it's upgrading.

Location:
uspace/app/sysinst
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sysinst/sysinst.c

    r9f9d9067 r6d06bbc  
    629629                        goto error;
    630630                }
     631
     632                /* performing OS upgrade */
     633                sysinst->oper = sio_upgrade;
     634                if (sysinst->progress != NULL) {
     635                        (void)ui_label_set_text(sysinst->progress->label,
     636                            "Upgrading system. Please wait...");
     637                        (void)ui_label_paint(sysinst->progress->label);
     638                        (void)ui_window_set_caption(sysinst->bgwindow,
     639                            "System Upgrade");
     640                }
    631641        } else {
    632642                /* Create installation partition. */
     
    634644                if (rc != EOK)
    635645                        goto error;
     646
     647                /* performing initial OS installation */
     648                sysinst->oper = sio_install;
    636649        }
    637650
     
    14581471        ui_msg_dialog_params_init(&params);
    14591472        params.caption = "Restart System";
    1460         params.text = "Installation complete. Restart the system?";
     1473
     1474        if (sysinst->oper == sio_install)
     1475                params.text = "Installation complete. Restart the system?";
     1476        else
     1477                params.text = "Upgrade complete. Restart the system?";
     1478
    14611479        params.choice = umdc_ok_cancel;
    14621480        params.flags |= umdf_topmost | umdf_center;
  • uspace/app/sysinst/sysinst.h

    r9f9d9067 r6d06bbc  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2026 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    5454} sysinst_progress_t;
    5555
     56/** Installer operation */
     57typedef enum {
     58        /** initial OS installation */
     59        sio_install,
     60        /** OS upgrade */
     61        sio_upgrade
     62} sysinst_oper_t;
     63
    5664/** System installer. */
    5765typedef struct {
     
    6371        /** Service ID of destination partition. */
    6472        sysarg_t psvc_id;
     73        /** operation being performed */
     74        sysinst_oper_t oper;
    6575        futil_t *futil;
    6676        char errmsg[128];
Note: See TracChangeset for help on using the changeset viewer.