Browse Source
Merge pull request #9 from nmasse-itix/feat/base-partitioning-to-local
base: move /var disk partitioning from overlay.bu to local.bu
pull/8/merge
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
19 additions and
16 deletions
-
.gitignore
-
cookbooks/base/overlay.bu
-
local.bu.template
-
scripts/common.mk
|
|
|
@ -2,6 +2,7 @@ |
|
|
|
*.ign |
|
|
|
!fcos.bu |
|
|
|
!overlay.bu |
|
|
|
!overlay-examples.bu |
|
|
|
__pycache__/ |
|
|
|
.pytest_cache/ |
|
|
|
**/build/*.tar.gz |
|
|
|
|
|
|
|
@ -1,21 +1,6 @@ |
|
|
|
variant: fcos |
|
|
|
version: 1.4.0 |
|
|
|
storage: |
|
|
|
disks: |
|
|
|
- device: /dev/vdb |
|
|
|
wipe_table: false |
|
|
|
partitions: |
|
|
|
# Specify the partition number so that FCOS do not try to create a new |
|
|
|
# partition at each VM redeployment. |
|
|
|
- number: 1 |
|
|
|
size_mib: 0 |
|
|
|
start_mib: 0 |
|
|
|
label: var |
|
|
|
filesystems: |
|
|
|
- path: /var |
|
|
|
device: /dev/disk/by-partlabel/var |
|
|
|
format: xfs |
|
|
|
with_mount_unit: true |
|
|
|
directories: |
|
|
|
- path: /var/lib/private/sshd |
|
|
|
mode: 0700 |
|
|
|
|
|
|
|
@ -1,5 +1,21 @@ |
|
|
|
variant: fcos |
|
|
|
version: 1.4.0 |
|
|
|
storage: |
|
|
|
disks: |
|
|
|
- device: /dev/vdb |
|
|
|
wipe_table: false |
|
|
|
partitions: |
|
|
|
# Specify the partition number so that FCOS do not try to create a new |
|
|
|
# partition at each VM redeployment. |
|
|
|
- number: 1 |
|
|
|
size_mib: 0 |
|
|
|
start_mib: 0 |
|
|
|
label: var |
|
|
|
filesystems: |
|
|
|
- path: /var |
|
|
|
device: /dev/disk/by-partlabel/var |
|
|
|
format: xfs |
|
|
|
with_mount_unit: true |
|
|
|
passwd: |
|
|
|
users: |
|
|
|
- name: john |
|
|
|
|
|
|
|
@ -451,8 +451,9 @@ build/$(PROJECT_NAME).tar.gz build/$(PROJECT_NAME).bu build/$(PROJECT_NAME)-exam |
|
|
|
$(SCRIPTS_DIR)/generate-tarball.sh build/$(PROJECT_NAME).tar.gz; \
|
|
|
|
(cat $(SCRIPTS_DIR)/butane.blocklist; echo; for file in $$(find "$$TARGET_CHROOT"); do echo "$${file#$$TARGET_CHROOT}"; done) | sort -u | grep -v -E '^$$' > "$(BUTANE_BLOCKLIST)"; \
|
|
|
|
run make install-examples; \
|
|
|
|
EXAMPLES_YQ_FILES="$$(if [ -f "overlay-examples.bu" ]; then echo "- overlay-examples.bu"; else echo "-"; fi)"; \
|
|
|
|
echo "generate-butane-spec.sh build/$(PROJECT_NAME)-examples.bu"; \
|
|
|
|
$(SCRIPTS_DIR)/generate-butane-spec.sh build/$(PROJECT_NAME)-examples.bu; \
|
|
|
|
$(SCRIPTS_DIR)/generate-butane-spec.sh | yq eval-all '. as $$item ireduce ({}; . *+ $$item)' $$EXAMPLES_YQ_FILES > build/$(PROJECT_NAME)-examples.bu; \
|
|
|
|
(cat $(SCRIPTS_DIR)/butane.blocklist; echo; for file in $$(find "$$TARGET_CHROOT"); do echo "$${file#$$TARGET_CHROOT}"; done) | sort -u | grep -v -E '^$$' > "$(BUTANE_BLOCKLIST)"; \
|
|
|
|
fi |
|
|
|
.PHONY: build/$(PROJECT_NAME).bu build/$(PROJECT_NAME)-examples.bu |
|
|
|
|