mirror of
https://linux.maple.camp/git/ahill/maplelinux-bootstrap.git
synced 2026-02-11 10:13:35 +00:00
Renamed two scripts to follow the verb-noun.sh convention
Not really a convention yet, but it just makes sense to use.
This commit is contained in:
22
chroot-bootstrap.sh
Executable file
22
chroot-bootstrap.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
MAPLE=$(pwd)/maple
|
||||
|
||||
if mount --rbind /dev $MAPLE/dev && mount --make-rslave $MAPLE/dev; then
|
||||
if mount -t proc /proc $MAPLE/proc; then
|
||||
if mount --rbind /sys $MAPLE/sys && mount --make-rslave $MAPLE/sys; then
|
||||
if mount --rbind /tmp $MAPLE/tmp; then
|
||||
if mount --bind /run $MAPLE/run; then
|
||||
if mount --bind ./sources $MAPLE/maple/sources; then
|
||||
chroot $MAPLE /bin/sh
|
||||
umount $MAPLE/maple/sources
|
||||
fi
|
||||
umount $MAPLE/run
|
||||
fi
|
||||
umount $MAPLE/tmp
|
||||
fi
|
||||
umount -R $MAPLE/sys
|
||||
fi
|
||||
umount $MAPLE/proc
|
||||
fi
|
||||
umount -R $MAPLE/dev
|
||||
fi
|
||||
Reference in New Issue
Block a user