commit:     4c1be1fa3f367f057378e65548748d1e01b84d17
Author:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
AuthorDate: Fri May  9 11:15:47 2025 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Oct  3 14:22:31 2025 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=4c1be1fa

livecdfs-update.sh: register data storage partition in fstab

the mount point is passed as the first argument to this script. If
none then nothing is added to the fstab.

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 targets/support/livecdfs-update.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/targets/support/livecdfs-update.sh 
b/targets/support/livecdfs-update.sh
index 687b9d4e..04bb2e50 100755
--- a/targets/support/livecdfs-update.sh
+++ b/targets/support/livecdfs-update.sh
@@ -70,9 +70,18 @@ cat <<EOF > /etc/fstab
 ####################################################
 
 # fstab tweaks
-tmpfs  /                                       tmpfs   defaults        0 0
+tmpfs                          /                       tmpfs   defaults        
0 0
 EOF
 
+# First argument will contain the mount point of an extra data
+# partition, if any.
+if [[ -n ${1} ]]; then
+       mkdir -p "${1}"
+       cat <<-EOF >> /etc/fstab
+       PARTLABEL=Appended3             ${1}            xfs     lazytime        
0 2
+       EOF
+fi
+
 mv ${clst_make_conf} ${clst_make_conf}.old
 cat <<EOF > ${clst_make_conf}
 ####################################################

Reply via email to