resolv.conf fixes
This commit is contained in:
@@ -26,14 +26,10 @@ fi
|
||||
sed -i "s/#GRUB_DISABLE_OS_PROBER=false/# OS_PROBER re-enabled by RakuOS Calamares installation:\nGRUB_DISABLE_OS_PROBER=false/g" $CHROOT/etc/default/grub
|
||||
chroot $CHROOT /usr/sbin/update-grub
|
||||
# Detect filesystem type of the installed system
|
||||
FS_TYPE=$(findmnt -n -o FSTYPE "$CHROOT" || true)
|
||||
|
||||
echo "Filesystem detected inside chroot: $FS_TYPE"
|
||||
|
||||
# Btrfs = Default path, keep grub-btrfs / snapper
|
||||
FS_TYPE=$(findmnt -n -o FSTYPE "$CHROOT")
|
||||
if [ "$FS_TYPE" = "btrfs" ]; then
|
||||
echo " * Btrfs detected → leaving grub-btrfs + snapper installed"
|
||||
echo " * Btrfs detected nothing to do"
|
||||
else
|
||||
echo " * Non-Btrfs filesystem detected → removing grub-btrfs + snapper"
|
||||
chroot "$CHROOT" apt-get -y purge snapper btrfs-assistant 2>/dev/null || true
|
||||
echo " * Not a Btrfs filesystem, removing snapper, btrfs-assistant"
|
||||
chroot "$CHROOT" apt-get -y purge snapper btrfs-assistant
|
||||
fi
|
||||
|
||||
@@ -9,5 +9,6 @@ if [ "$1" = "-u" ]; then
|
||||
fi
|
||||
|
||||
echo "force-unsafe-io" > $CHROOT/etc/dpkg/dpkg.cfg.d/calamares-force-unsafe-io
|
||||
|
||||
rm $CHROOT/etc/resolv.conf
|
||||
ln -sf /run/systemd/resolve/stub-resolv.conf $CHROOT/etc/resolv.conf
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user