File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,26 @@ LIMA_CIDATA_GID=$(id -g "${LIMA_CIDATA_USER}")
3636chown -R " ${LIMA_CIDATA_UID} :${LIMA_CIDATA_GID} " " ${LIMA_CIDATA_SSHDIR} "
3737chmod 600 " ${LIMA_CIDATA_SSHDIR} " /authorized_keys
3838
39+ # Add mounts to /etc/fstab
40+ sed -i ' /#LIMA-START/,/#LIMA-END/d' /etc/fstab
41+ echo " #LIMA-START" >> /etc/fstab
42+ awk -f- " ${LIMA_CIDATA_MNT} " /user-data << 'EOF ' >> /etc/fstab
43+ /^mounts:/ {
44+ flag = 1
45+ next
46+ }
47+ /^ *$/ {
48+ flag = 0
49+ }
50+ flag {
51+ sub(/^ *- \[/, "")
52+ sub(/"?\] *$/, "")
53+ gsub("\"?, \"?", "\t")
54+ print $0
55+ }
56+ EOF
57+ echo " #LIMA-END" >> /etc/fstab
58+
3959# Rename network interfaces according to network-config setting
4060mkdir -p /var/lib/lima-init
4161IP_RENAME=/var/lib/lima-init/ip-rename
You can’t perform that action at this time.
0 commit comments