Ubuntu base

ahuo發表於2024-05-20
####mymount.sh
#!/bin/bash
echo "mountting..."
cp /etc/resolv.conf /Data/Ubuntu_BS/Ubuntu_Base-22.04.3/etc/resolv.conf
sudo mount -t proc /proc /Data/Ubuntu_BS/Ubuntu_Base-22.04.3/proc
sudo mount -t sysfs /sys /Data/Ubuntu_BS/Ubuntu_Base-22.04.3/sys
sudo mount -o bind /dev /Data/Ubuntu_BS/Ubuntu_Base-22.04.3/dev
sudo mount -o bind /dev/pts /Data/Ubuntu_BS/Ubuntu_Base-22.04.3/dev/pts
sudo chroot /Data/Ubuntu_BS/Ubuntu_Base-22.04.3/
  •   ping安裝

apt install iputils-ping