Mount /run on rootfs
LVM in debian 10 requires the /run partition to be mounted or else grub-install will not complete correctly.
This commit is contained in:
parent
8dcda8bffa
commit
5e41b4c3f1
|
@ -82,6 +82,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
chroot /mnt/rootfs/ bash
|
||||
export LC_ALL=C
|
||||
|
|
|
@ -109,6 +109,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
|
||||
|
|
|
@ -89,6 +89,7 @@ EOT
|
|||
mount -t proc none /mnt/rootfs/proc
|
||||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
chroot /mnt/rootfs/ bash
|
||||
|
|
|
@ -85,6 +85,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
chroot /mnt/rootfs/ bash
|
||||
export LC_ALL=C
|
||||
|
|
|
@ -139,6 +139,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
sleep 1
|
||||
|
|
|
@ -107,6 +107,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
chroot /mnt/rootfs/ bash
|
||||
export LC_ALL=C
|
||||
|
|
|
@ -103,6 +103,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
chroot /mnt/rootfs/ bash
|
||||
export LC_ALL=C
|
||||
|
|
|
@ -169,6 +169,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
sleep 1
|
||||
|
|
|
@ -118,6 +118,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
# Chroot and install lvm2 + reconfigure grub-pc
|
||||
echo "Evolix partitioning done... Follow instrutions in projet6140(8) then reboot!"
|
||||
|
|
|
@ -179,6 +179,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
sleep 1
|
||||
|
|
|
@ -134,6 +134,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
|
||||
|
|
|
@ -104,6 +104,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
chroot /mnt/rootfs/ bash
|
||||
export LC_ALL=C
|
||||
|
|
|
@ -83,6 +83,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
chroot /mnt/rootfs/ bash
|
||||
export LC_ALL=C
|
||||
|
|
|
@ -127,6 +127,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
|
||||
|
|
|
@ -177,6 +177,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
sleep 1
|
||||
|
|
|
@ -107,6 +107,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
chroot /mnt/rootfs/ bash
|
||||
export LC_ALL=C
|
||||
|
|
|
@ -156,6 +156,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
|
||||
|
|
|
@ -155,6 +155,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
|
||||
|
|
|
@ -154,6 +154,7 @@ mount -t proc none /mnt/rootfs/proc
|
|||
mount -o bind /dev /mnt/rootfs/dev
|
||||
mount -o bind /dev/pts /mnt/rootfs/dev/pts
|
||||
mount -t sysfs sys /mnt/rootfs/sys
|
||||
mount --bind /run /mnt/rootfs/run
|
||||
|
||||
rm -rf /mnt/rootfs/boot/*
|
||||
|
||||
|
|
Loading…
Reference in a new issue