Skip to content

Commit 1ef9d96

Browse files
mudlersmudler
andauthored
Mount COS_PERSISTENT in cos-deploy (#511)
Signed-off-by: Ettore Di Giacinto <[email protected]> Co-authored-by: Ettore Di Giacinto <[email protected]>
1 parent 28c281d commit 1ef9d96

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

packages/cos/collection.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
packages:
22
- name: "cos"
33
category: "system"
4-
version: 0.6.3+5
4+
version: "0.6.4"
55
description: "cOS base image, used to build cOS live ISOs"
66
brand_name: "cOS"
77
labels:
88
autobump.revdeps: "true"
99
autobump.revbump_related: "recovery/cos-img recovery/cos-squash"
1010
- name: "cos"
1111
category: "recovery"
12-
version: 0.6.3+5
12+
version: "0.6.4"
1313
brand_name: "cOS recovery"
1414
description: "cOS recovery image, used to boot cOS for troubleshooting"
1515
labels:
1616
autobump.revdeps: "true"
1717
autobump.revbump_related: "recovery/cos-img recovery/cos-squash"
1818
- name: "cos-container"
1919
category: "system"
20-
version: 0.6.3+5
20+
version: "0.6.4"
2121
brand_name: "cOS"
2222
description: "cOS container image, used to build cOS derivatives from scratch"
2323
labels:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: "cos-img"
22
category: "recovery"
3-
version: 0.6.3+5
3+
version: "0.6.4"
44
brand_name: "cOS"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
name: "cos-squash"
22
category: "recovery"
3-
version: 0.6.3+5
3+
version: "0.6.4"

packages/installer/definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
name: "installer"
22
category: "utils"
3-
version: "0.12"
3+
version: "0.13"

packages/installer/deploy.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ mount_state() {
7373
mount ${STATE} ${STATEDIR}
7474
}
7575

76+
is_mounted() {
77+
mountpoint -q "$1"
78+
}
79+
7680
mount_image() {
7781
STATEDIR=/run/initramfs/cos-state
7882
TARGET=/tmp/upgrade
@@ -89,6 +93,8 @@ mount_image() {
8993
mount_state
9094
fi
9195

96+
is_mounted /usr/local || mount ${PERSISTENT} /usr/local
97+
9298
prepare_target
9399
}
94100

0 commit comments

Comments
 (0)