Skip to content

Commit 52ab281

Browse files
authored
Update install.sh
1 parent ff0e730 commit 52ab281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ sudo sh -c "
1010
systemctl stop docker
1111
mkdir /rootfs/old.rootfs
1212
mount --bind / /rootfs/old.rootfs
13+
mkdir -p /rootfs/usr/lib/modules/
14+
cp -Lfr /lib/modules/* /rootfs/usr/lib/modules/
1315
chroot /rootfs /bin/sh -c '
1416
cd /old.rootfs/etc/ &&
1517
cp -Pfr passwd group shadow hosts resolv.conf hostname sudoers sudoers.d /etc/ &&
16-
mkdir -p /usr/lib/modules/ &&
17-
cp -Lfr /old.rootfs/lib/modules/* /usr/lib/modules/ &&
1818
cd /old.rootfs &&
1919
rm -fr etc sbin bin lib usr lib64 var/mail var/spool/mail &&
2020
cd / &&

0 commit comments

Comments
 (0)