diff options
author | Kim Hagen <kim@sentrium.io> | 2021-08-02 09:15:21 -0500 |
---|---|---|
committer | Kim Hagen <kim@sentrium.io> | 2021-08-02 09:15:21 -0500 |
commit | d70a3f5e86f37abe657c13d16ccc081832356d40 (patch) | |
tree | 0d49c2a3be615f03e5f68ae93f30cc446968953c /scripts/build/binary_hdd | |
parent | 4032937df8d612188f1381029ecf271764b6692a (diff) | |
download | vyos-live-build-d70a3f5e86f37abe657c13d16ccc081832356d40.tar.gz vyos-live-build-d70a3f5e86f37abe657c13d16ccc081832356d40.zip |
add items for grub setup and enable persistence
Diffstat (limited to 'scripts/build/binary_hdd')
-rwxr-xr-x | scripts/build/binary_hdd | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/build/binary_hdd b/scripts/build/binary_hdd index 83e068c23..42800df0c 100755 --- a/scripts/build/binary_hdd +++ b/scripts/build/binary_hdd @@ -260,6 +260,17 @@ else fi cp -T ${CP_OPTIONS} binary/ chroot/binary.tmp +if [ "${LB_VYOS_PERSISTENCE}" = "true" ] +then + mkdir -p chroot/binary.tmp/${LB_VYOS_VERSION}/rw + mkdir -p chroot/binary.tmp/${LB_VYOS_VERSION}/work + mv chroot/binary.tmp/${LB_VYOS_VERSION}/filesystem.squashfs \ + chroot/binary.tmp/${LB_VYOS_VERSION}/$(basename ${LB_VYOS_VERSION}).squashfs + cat > chroot/binary.tmp/persistence.conf << EOF +/ union +EOF +fi + if [ "${LB_BOOTLOADER_BIOS}" = "grub-pc" ]; then case "${LB_BUILD_WITH_CHROOT}" in |