Skip to content

Commit cca3843

Browse files
committed
chroot install seems to be working cleanly
1 parent a349689 commit cca3843

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

builder.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,20 @@ case "$1" in
6363
deboot_stage_two
6464
echo "Doing post install setup"
6565
deboot_setup
66+
#somewhere along the line, deboot seems to be unmounting stuff
67+
echo "Remounting file systems"
68+
sleep 1
69+
do_unmount
70+
sleep 1
71+
do_mount
6672
echo "Upgrading the chroot system"
6773
upgrade_chroot
6874
echo "Installing build tools"
6975
install_build_tools
7076
echo "Undoing mountpoints"
77+
#seems to be doing something if we try to unstantly unmount
78+
#/dev so give it a sec to finish
79+
sleep 1
7180
do_unmount
7281
echo "Restoring PATH"
7382
reset_path

functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ do_mount ()
5656
mount -t sysfs sys $BASE_DIR/$ROOT_TARGET/sys/;
5757
echo "mount -o bind /dev $BASE_DIR/$ROOT_TARGET/dev/"
5858
mount -o bind /dev $BASE_DIR/$ROOT_TARGET/dev/;
59-
echo "mount -t devpts devpts $BASE_DIR/$ROOT_TARGET/dev/pts/"
59+
echo "mount -t devpts devpts -o mode=620,gid=5 $BASE_DIR/$ROOT_TARGET/dev/pts/"
6060
mount -t devpts devpts -o mode=620,gid=5 $BASE_DIR/$ROOT_TARGET/dev/pts/;
6161
}
6262
do_unmount ()

0 commit comments

Comments
 (0)