| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
We can add a menu entry for this in the extlinux.conf file directly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will add the initramfs to the config and tell it to mount the disk
by UUID if INITRAMFS_PATH was provided in the initial deployment.
It will also include the extra KERNEL_ARGS provided.
This is required to be able to upgrade a system that uses an initramfs
and have it continue to use the initramfs.
The system will continue to work without this patch if the initramfs'
only responsibility was translating a UUID into a disk path, since
system-version-manager would generate an extlinux.conf that boots with
the same disk as it is currently using, but that would break if the
device enumeration order changed e.g. if another disk was inserted
before the rootfs, or the disk is transplanted into another machine.
|
|
|
|
|
|
|
|
|
|
|
| |
This function was added to ensure safe, automatic updates of the default
system symlink, but for some reason, was never used.
Instead it open-coded a vulnerable way of doing this, which could fail
if an upgrade was aborted at the wrong time.
So now we use atomic_symlink_update, which won't fail, and the worst
that can happen is a temporary directory gets left around.
|
|
|
|
|
| |
It's a shame to throw away the fd that ensures we aren't hit by a
symlink attack.
|
| |
|
|
|
|
|
|
|
| |
baserock-system-config-sync
This is helpful when deploying an upgrade to a system that doesn't
already have baserock-system-config-sync installed.
|
|
This is part of the upgrades work. With this tool you
can now switch between versions of the OS, remove a
version, list all the versions present in the system, get
the default version and the running version, and deploy
a new system.
All of the above is possible with the following subcommands:
- list
- deploy
- get-default
- get-running
- remove
- set-default
It also activates a bootloader menu to choose a version
to boot. The menu is important to make sure the user can
boot the old OS if the new kernel doesn't work.
|