Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fuss-cru
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FUSS Team
fuss-cru
Commits
86b6f1d5
Commit
86b6f1d5
authored
3 years ago
by
Elena Grandi
Browse files
Options
Downloads
Patches
Plain Diff
Update to run from buster to bullseye
parent
d9b5cb31
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.md
+3
-2
3 additions, 2 deletions
README.md
install_menu_option.sh
+1
-1
1 addition, 1 deletion
install_menu_option.sh
octonet_script.sh
+1
-1
1 addition, 1 deletion
octonet_script.sh
run_upgrade.sh
+6
-6
6 additions, 6 deletions
run_upgrade.sh
upgrade.yml
+5
-5
5 additions, 5 deletions
upgrade.yml
with
16 additions
and
15 deletions
README.md
+
3
−
2
View file @
86b6f1d5
# FUSS
9
to 1
0
# FUSS
10
to 1
1
## In-place upgrade of FUSS Clients
### Quickstart
...
...
@@ -9,10 +9,11 @@ On the FUSS Server
cd
/srv/clonezilla
git clone https://gitlab.fuss.bz.it/fuss-team/fuss-nine-to-ten.git
cd
fuss-nine-to-ten
git checkout ten-to-eleven
./install_menu_option.sh
```
and you're ready to go. Boot from LAN a PC and you'll see the new "FUSS
9
to 1
0
in-place upgrade" option.
and you're ready to go. Boot from LAN a PC and you'll see the new "FUSS
10
to 1
1
in-place upgrade" option.
### Packages caching
...
...
This diff is collapsed.
Click to expand it.
install_menu_option.sh
+
1
−
1
View file @
86b6f1d5
...
...
@@ -21,7 +21,7 @@ FETCH=$(cat /srv/tftp/pxelinux.cfg/default|grep APPEND|tail -1|rev|cut -d ' ' -f
if
!
grep
"label in-place-upgrade"
/srv/tftp/pxelinux.cfg/default
;
then
cat
>>
/srv/tftp/pxelinux.cfg/default
<<
EOF
label in-place-upgrade
MENU LABEL FUSS
9
to 1
0
in-place upgrade
MENU LABEL FUSS
10
to 1
1
in-place upgrade
# Please remove the ssh key from .ssh/authorized_keys of the clonezilla
# user instead of using this line!
# MENU PASSWD myPassword
...
...
This diff is collapsed.
Click to expand it.
octonet_script.sh
+
1
−
1
View file @
86b6f1d5
...
...
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
if
[
"
$(
lsb_release
-sc
)
"
==
"
stretch
"
]
;
then
if
[
"
$(
lsb_release
-sc
)
"
==
"
buster
"
]
;
then
cd
/root
sed
-i
'/^mozilla\/DST_Root_CA_X3/s/^/!/'
/etc/ca-certificates.conf
&&
update-ca-certificates
-f
wget https://gitlab.fuss.bz.it/fuss-team/fuss-nine-to-ten/-/raw/main/run_upgrade.sh
...
...
This diff is collapsed.
Click to expand it.
run_upgrade.sh
+
6
−
6
View file @
86b6f1d5
...
...
@@ -17,16 +17,16 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
if
[
"
$1
"
==
"run"
]
;
then
LOGFILE
=
"/root/
9
to1
0
.log"
STATEFILE
=
"/root/upgraded_
9
to1
0
"
LOGFILE
=
"/root/
10
to1
1
.log"
STATEFILE
=
"/root/upgraded_
10
to1
1
"
cat
<<
EOF
FUSS
9
to 1
0
in-place upgrade tool
FUSS
10
to 1
1
in-place upgrade tool
Now starting...
EOF
if
[
"
$(
lsb_release
-sc
)
"
==
"bu
ster
"
]
&&
[
-e
"
$STATEFILE
"
]
;
then
if
[
"
$(
lsb_release
-sc
)
"
==
"bu
llseye
"
]
&&
[
-e
"
$STATEFILE
"
]
;
then
echo
"[FUSS] Final phase, upgrading configuration"
echo
"[FUSS] Run dpkg --configure -a"
dpkg
--configure
-a
...
...
@@ -40,8 +40,8 @@ EOF
systemctl reboot
exit
0
fi
if
[
"
$(
lsb_release
-sc
)
"
==
"bu
ster
"
]
;
then
echo
"Only upgrading to bu
ster from stretch
is currently supported"
if
[
"
$(
lsb_release
-sc
)
"
==
"bu
llseye
"
]
;
then
echo
"Only upgrading to bu
llseye from buster
is currently supported"
rm
/etc/rc.local
rm
/root/run_upgrade.sh
rm
/root/upgrade.yml
...
...
This diff is collapsed.
Click to expand it.
upgrade.yml
+
5
−
5
View file @
86b6f1d5
...
...
@@ -31,15 +31,15 @@
-
name
:
Update sources.list
replace
:
dest
:
/etc/apt/sources.list
regexp
:
"
stretch
"
replace
:
"
bu
ster
"
regexp
:
"
buster
"
replace
:
"
bu
llseye
"
backup
:
yes
-
name
:
Update sources.list.d files
replace
:
dest
:
"
{{
item
}}"
regexp
:
"
stretch
"
replace
:
"
bu
ster
"
regexp
:
"
buster
"
replace
:
"
bu
llseye
"
backup
:
yes
with_items
:
"
{{
lookup('fileglob',
'/etc/apt/sources.list.d/*',
wantlist=True)
}}"
...
...
@@ -54,7 +54,7 @@
state
:
absent
failed_when
:
false
-
name
:
Update all packages to bu
ster
(might take more than a hour)
-
name
:
Update all packages to bu
llseye
(might take more than a hour)
apt
:
update_cache
:
no
upgrade
:
full
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment