mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-22 23:08:36 +00:00
update
This commit is contained in:
@@ -638,8 +638,6 @@ CONF
|
|||||||
chroot_execute "systemctl enable systemd-networkd.service"
|
chroot_execute "systemctl enable systemd-networkd.service"
|
||||||
chroot_execute "systemctl enable systemd-resolved.service"
|
chroot_execute "systemctl enable systemd-resolved.service"
|
||||||
|
|
||||||
allow-hotplug eno1
|
|
||||||
|
|
||||||
echo "======= preparing the jail for chroot =========="
|
echo "======= preparing the jail for chroot =========="
|
||||||
for virtual_fs_dir in proc sys dev; do
|
for virtual_fs_dir in proc sys dev; do
|
||||||
mount --rbind "/$virtual_fs_dir" "$c_zfs_mount_dir/$virtual_fs_dir"
|
mount --rbind "/$virtual_fs_dir" "$c_zfs_mount_dir/$virtual_fs_dir"
|
||||||
@@ -827,17 +825,17 @@ ip route add 172.31.1.1/255.255.255.255 dev eth0
|
|||||||
ip route add default via 172.31.1.1 dev eth0
|
ip route add default via 172.31.1.1 dev eth0
|
||||||
CONF
|
CONF
|
||||||
|
|
||||||
#cat > "$c_zfs_mount_dir/etc/network/interfaces" <<'CONF'
|
cat > "$c_zfs_mount_dir/etc/network/interfaces" <<'CONF'
|
||||||
#auto lo
|
auto lo
|
||||||
#iface lo inet loopback
|
iface lo inet loopback
|
||||||
#iface lo inet6 loopback
|
iface lo inet6 loopback
|
||||||
|
|
||||||
#allow-hotplug eth0
|
allow-hotplug eth0
|
||||||
#iface eth0 inet dhcp
|
iface eth0 inet dhcp
|
||||||
#iface eth0 inet6 dhcp
|
iface eth0 inet6 dhcp
|
||||||
#CONF
|
CONF
|
||||||
|
|
||||||
#chmod 755 "$c_zfs_mount_dir/etc/network/interfaces"
|
chmod 755 "$c_zfs_mount_dir/etc/network/interfaces"
|
||||||
|
|
||||||
echo "======= update initramfs =========="
|
echo "======= update initramfs =========="
|
||||||
chroot_execute "update-initramfs -u -k all"
|
chroot_execute "update-initramfs -u -k all"
|
||||||
|
|||||||
Reference in New Issue
Block a user