Skip to content

/usr/local/bin/pvepreup.sh in pve-wsl2.md is buggy #2

@SamLowryMOI

Description

@SamLowryMOI

If you are interested. The script /usr/local/bin/pvepreup.sh in pve-wsl2.md only works until /etc/network/interfaces is extended (and isn't there an iface eth0 inet manual missing?). Then

`ip -4 a | awk '/inet .* scope global/ {split($2,out,"/");print out[1]}'`

returns two ip addresses and

awk "/^127\.0\.0\.1.*`hostname`/ {next} /`hostname`/ {\$1 = \"$ip4addr\"} // {print}" /etc/hosts > /etc/hosts.new && mv /etc/hosts.new /etc/hosts`

no longer works (awk: line 1: runaway string constant "172.30.27 ...), i.e. the script is no longer executed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions