Include:Upgrading Alpine environmentvars: Difference between revisions
Dubiousjim (talk | contribs) (Migrate text from "Template:...") |
Prabuanand (talk | contribs) (replaced category:LBU by category:Diskless as diskless is more generic) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=== Setup environment variables === | === Setup environment variables === | ||
To make the documentation a bit more | To make the documentation a bit more "generic" we start by setting some environment variables. | ||
{{Cmd|vi /etc/lbu/lbu.conf}} | {{Cmd|vi /etc/lbu/lbu.conf}} | ||
Make sure that the variable | Make sure that the variable <code>LBU_MEDIA</code> is not commented (by removing the leading '#'). | ||
You also need to set a appropriate value for your <code>LBU_MEDIA</code>. The media you choose will be the media where you store your settings/configuration. | |||
{{Note|Even if you have you alpine installed on CF, HD or USB you can still choose to save your config on some other media that suits your needs. But remember that both the media where you have your Alpine system AND the media where you have your config need to be in your box when booting it.}} | |||
Examples: | |||
LBU_MEDIA=usb | |||
or: | |||
LBU_MEDIA=sda1 | LBU_MEDIA=sda1 | ||
Now that you have your | Now that you have your {{Path|/etc/lbu/lbu.conf}} configured for your needs, we will set the environment variables (note the leading <code>.</code>). | ||
{{Cmd|. /etc/lbu/lbu.conf}} | {{Cmd|. /etc/lbu/lbu.conf}} | ||
You can test if your environment variable was set | You can test if your environment variable was set: | ||
{{Cmd|echo $LBU_MEDIA}} | {{Cmd|echo $LBU_MEDIA}} | ||
It should output something like <code>usb</code>, <code>sda1</code>, or whatever you just configured. | |||
=== Back up your config === | === Back up your config === | ||
Before starting to upgrade, it's wise to save your configuration. | Before starting to upgrade, it's wise to save your configuration. | ||
{{Cmd|lbu ci}} | {{Cmd|lbu ci}} | ||
[[category:Diskless]] |
Latest revision as of 07:09, 6 November 2024
Setup environment variables
To make the documentation a bit more "generic" we start by setting some environment variables.
vi /etc/lbu/lbu.conf
Make sure that the variable LBU_MEDIA
is not commented (by removing the leading '#').
You also need to set a appropriate value for your LBU_MEDIA
. The media you choose will be the media where you store your settings/configuration.
Note: Even if you have you alpine installed on CF, HD or USB you can still choose to save your config on some other media that suits your needs. But remember that both the media where you have your Alpine system AND the media where you have your config need to be in your box when booting it.
Examples:
LBU_MEDIA=usb
or:
LBU_MEDIA=sda1
Now that you have your /etc/lbu/lbu.conf configured for your needs, we will set the environment variables (note the leading .
).
. /etc/lbu/lbu.conf
You can test if your environment variable was set:
echo $LBU_MEDIA
It should output something like usb
, sda1
, or whatever you just configured.
Back up your config
Before starting to upgrade, it's wise to save your configuration.
lbu ci