Fix worker/storage disk setup in kickstart files

In Anaconda, all the disk and partitions instructions
are present in the /tmp/part-include file.
In the storage and compute kickstart files,
the /tmp/part-include file is truncated
when an upgrade is triggered.
We fix this by changing "cat<<EOF>/tmp/part-include"
to "cat<<EOF>>/tmp/part-include" in the kickstart files.

Closes-Bug: 1881776
Change-Id: Ic3818127ac7477d534156ed28c16cb11123f0424
Signed-off-by: Mihnea Saracin <Mihnea.Saracin@windriver.com>
This commit is contained in:
Mihnea Saracin 2020-06-10 17:10:41 +03:00
parent 04b0e6399d
commit a6c497371b
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ if [ -n "$profile_mode" ]; then
ROOTFS_OPTIONS="${ROOTFS_OPTIONS},iversion"
fi
cat<<EOF>/tmp/part-include
cat<<EOF>>/tmp/part-include
clearpart --all --drives=$WIPE_HDD --initlabel
EOF

View File

@ -31,7 +31,7 @@ if [ -n "$profile_mode" ]; then
ROOTFS_OPTIONS="${ROOTFS_OPTIONS},iversion"
fi
cat<<EOF>/tmp/part-include
cat<<EOF>>/tmp/part-include
clearpart --all --drives=$WIPE_HDD --initlabel
EOF