From 5e41b4c3f130012d8380ecef14fd809bbe5f8d50 Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Mon, 8 Mar 2021 10:48:27 -0500 Subject: [PATCH] Mount /run on rootfs LVM in debian 10 requires the /run partition to be mounted or else grub-install will not complete correctly. --- OVH-SYS_Hard_RAID_KVMServer.sh | 1 + OVH-SYS_Hard_RAID_KVMServer_EFI.sh | 1 + OVH-SYS_Hard_RAID_SpecialServer_2VOLSRAID_GPT.sh | 1 + OVH-SYS_Hard_RAID_StandardServer.sh | 1 + OVH-SYS_Hard_RAID_StandardServer_EFI.sh | 1 + OVH-SYS_Soft_RAID10_StandardServer_EFI.sh | 1 + OVH-SYS_Soft_RAID1_BackupServer.sh | 1 + OVH-SYS_Soft_RAID1_StandardServer_EFI_NVMe.sh | 1 + OVH-SYS_Soft_RAID50_BackupServer.sh | 1 + OVH-SYS_Soft_RAID5_StandardServer_EFI_NVMe.sh | 1 + OVH-SYS_Soft_RAID_StandardServer_EFI.sh | 1 + OVH-SYS_Soft_RAID_StandardServer_EFI_NVMe.sh | 1 + Online_Hard_RAID_KVMServer.sh | 1 + Online_Hard_RAID_StandardServer.sh | 1 + Online_Soft_RAID10_NVMEServer.sh | 1 + Online_Soft_RAID1_BackupServer.sh | 1 + Online_Soft_RAID1_StandardServer.sh | 1 + Online_Soft_RAID5_NVMEServer.sh | 1 + Online_Soft_RAID5_StandardServer.sh | 1 + 19 files changed, 19 insertions(+) diff --git a/OVH-SYS_Hard_RAID_KVMServer.sh b/OVH-SYS_Hard_RAID_KVMServer.sh index 4224bd5..33de867 100644 --- a/OVH-SYS_Hard_RAID_KVMServer.sh +++ b/OVH-SYS_Hard_RAID_KVMServer.sh @@ -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 diff --git a/OVH-SYS_Hard_RAID_KVMServer_EFI.sh b/OVH-SYS_Hard_RAID_KVMServer_EFI.sh index e149fea..2e1a432 100644 --- a/OVH-SYS_Hard_RAID_KVMServer_EFI.sh +++ b/OVH-SYS_Hard_RAID_KVMServer_EFI.sh @@ -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/* diff --git a/OVH-SYS_Hard_RAID_SpecialServer_2VOLSRAID_GPT.sh b/OVH-SYS_Hard_RAID_SpecialServer_2VOLSRAID_GPT.sh index 83d7914..644baaa 100644 --- a/OVH-SYS_Hard_RAID_SpecialServer_2VOLSRAID_GPT.sh +++ b/OVH-SYS_Hard_RAID_SpecialServer_2VOLSRAID_GPT.sh @@ -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 diff --git a/OVH-SYS_Hard_RAID_StandardServer.sh b/OVH-SYS_Hard_RAID_StandardServer.sh index 34e9176..2c2710f 100644 --- a/OVH-SYS_Hard_RAID_StandardServer.sh +++ b/OVH-SYS_Hard_RAID_StandardServer.sh @@ -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 diff --git a/OVH-SYS_Hard_RAID_StandardServer_EFI.sh b/OVH-SYS_Hard_RAID_StandardServer_EFI.sh index 0ad5f72..e5c7b41 100644 --- a/OVH-SYS_Hard_RAID_StandardServer_EFI.sh +++ b/OVH-SYS_Hard_RAID_StandardServer_EFI.sh @@ -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 diff --git a/OVH-SYS_Soft_RAID10_StandardServer_EFI.sh b/OVH-SYS_Soft_RAID10_StandardServer_EFI.sh index 85f2899..a2f4bce 100644 --- a/OVH-SYS_Soft_RAID10_StandardServer_EFI.sh +++ b/OVH-SYS_Soft_RAID10_StandardServer_EFI.sh @@ -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 diff --git a/OVH-SYS_Soft_RAID1_BackupServer.sh b/OVH-SYS_Soft_RAID1_BackupServer.sh index d83dd9d..cc79e64 100644 --- a/OVH-SYS_Soft_RAID1_BackupServer.sh +++ b/OVH-SYS_Soft_RAID1_BackupServer.sh @@ -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 diff --git a/OVH-SYS_Soft_RAID1_StandardServer_EFI_NVMe.sh b/OVH-SYS_Soft_RAID1_StandardServer_EFI_NVMe.sh index 1f28ee3..847a627 100644 --- a/OVH-SYS_Soft_RAID1_StandardServer_EFI_NVMe.sh +++ b/OVH-SYS_Soft_RAID1_StandardServer_EFI_NVMe.sh @@ -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 diff --git a/OVH-SYS_Soft_RAID50_BackupServer.sh b/OVH-SYS_Soft_RAID50_BackupServer.sh index e01ec84..45034d6 100644 --- a/OVH-SYS_Soft_RAID50_BackupServer.sh +++ b/OVH-SYS_Soft_RAID50_BackupServer.sh @@ -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!" diff --git a/OVH-SYS_Soft_RAID5_StandardServer_EFI_NVMe.sh b/OVH-SYS_Soft_RAID5_StandardServer_EFI_NVMe.sh index fd010a8..8fb8078 100644 --- a/OVH-SYS_Soft_RAID5_StandardServer_EFI_NVMe.sh +++ b/OVH-SYS_Soft_RAID5_StandardServer_EFI_NVMe.sh @@ -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 diff --git a/OVH-SYS_Soft_RAID_StandardServer_EFI.sh b/OVH-SYS_Soft_RAID_StandardServer_EFI.sh index cc58dd9..3a53778 100644 --- a/OVH-SYS_Soft_RAID_StandardServer_EFI.sh +++ b/OVH-SYS_Soft_RAID_StandardServer_EFI.sh @@ -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/* diff --git a/OVH-SYS_Soft_RAID_StandardServer_EFI_NVMe.sh b/OVH-SYS_Soft_RAID_StandardServer_EFI_NVMe.sh index 4545852..483c3f3 100644 --- a/OVH-SYS_Soft_RAID_StandardServer_EFI_NVMe.sh +++ b/OVH-SYS_Soft_RAID_StandardServer_EFI_NVMe.sh @@ -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 diff --git a/Online_Hard_RAID_KVMServer.sh b/Online_Hard_RAID_KVMServer.sh index 7fcbd24..5008ae6 100755 --- a/Online_Hard_RAID_KVMServer.sh +++ b/Online_Hard_RAID_KVMServer.sh @@ -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 diff --git a/Online_Hard_RAID_StandardServer.sh b/Online_Hard_RAID_StandardServer.sh index 987b6a4..03effc0 100644 --- a/Online_Hard_RAID_StandardServer.sh +++ b/Online_Hard_RAID_StandardServer.sh @@ -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/* diff --git a/Online_Soft_RAID10_NVMEServer.sh b/Online_Soft_RAID10_NVMEServer.sh index c10f530..6942f54 100644 --- a/Online_Soft_RAID10_NVMEServer.sh +++ b/Online_Soft_RAID10_NVMEServer.sh @@ -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 diff --git a/Online_Soft_RAID1_BackupServer.sh b/Online_Soft_RAID1_BackupServer.sh index fc16fe0..4d8876e 100644 --- a/Online_Soft_RAID1_BackupServer.sh +++ b/Online_Soft_RAID1_BackupServer.sh @@ -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 diff --git a/Online_Soft_RAID1_StandardServer.sh b/Online_Soft_RAID1_StandardServer.sh index 27f4699..e21a5cb 100644 --- a/Online_Soft_RAID1_StandardServer.sh +++ b/Online_Soft_RAID1_StandardServer.sh @@ -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/* diff --git a/Online_Soft_RAID5_NVMEServer.sh b/Online_Soft_RAID5_NVMEServer.sh index 05cf483..baae92b 100644 --- a/Online_Soft_RAID5_NVMEServer.sh +++ b/Online_Soft_RAID5_NVMEServer.sh @@ -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/* diff --git a/Online_Soft_RAID5_StandardServer.sh b/Online_Soft_RAID5_StandardServer.sh index 6aff6b7..1f3a382 100644 --- a/Online_Soft_RAID5_StandardServer.sh +++ b/Online_Soft_RAID5_StandardServer.sh @@ -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/*