Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Erwan BOUSSE
ubuntu-vm-creator
Commits
9a214bdb
Commit
9a214bdb
authored
Nov 24, 2021
by
Erwan BOUSSE
Browse files
Make resolv.conf symlink outside the curtin
parent
fd512121
Changes
2
Hide whitespace changes
Inline
Side-by-side
_gateway_files/late-commands.sh
View file @
9a214bdb
...
...
@@ -19,7 +19,6 @@ echo "XSession=mate" >> /var/lib/AccountsService/users/etudiant
# Fix network
mkdir
-p
/etc/NetworkManager/conf.d/
touch
/etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo ln
-sf
/run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
||
true
# Install VBox additions
apt-get
-y
install
"linux-headers-
$(
uname
-r
)
"
...
...
_gateway_files/user-data
View file @
9a214bdb
...
...
@@ -25,4 +25,5 @@ autoinstall:
late-commands:
- cp /mnt/stuff/late-commands.sh /target/root
- cp /mnt/vboxiso/VBoxLinuxAdditions.run /target/root
- curtin in-target -t /target -- /bin/bash /root/late-commands.sh
\ No newline at end of file
- curtin in-target -t /target -- /bin/bash /root/late-commands.sh
- ln -sf /run/systemd/resolve/stub-resolv.conf /target/etc/resolv.conf
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment