Skip to content

Commit

Permalink
create mountpoints for linux fstab entries
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Mar 25, 2024
1 parent 49d4dcb commit c0800f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ install_linux()
{
# tested with values of $1:
# Ubuntu: bionic (18), focal (20) and jammy (22)
# Debian: bullseye (11)
# Debian: bullseye (11), bookwork (12)
# CentOS: centos (7)

configure_linuxulator
Expand All @@ -61,7 +61,7 @@ install_linux()
tell_status "installing $1"
stage_pkg_install linux_base-c7 || exit 1
;;
bionic|bullseye|focal|jammy)
bionic|bookworm|bullseye|focal|jammy)
tell_status "installing (debian|ubuntu) $1"
stage_pkg_install debootstrap || exit 1
stage_exec debootstrap $1 /compat/linux
Expand Down
4 changes: 4 additions & 0 deletions provision/centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ install_centos()

base_snapshot_exists || exit 1
create_staged_fs centos
for _fs in dev proc sys tmp home; do
mkdir -p "$ZFS_JAIL_MNT/stage/compat/linux/$_fs"
done
chmod 777 "$ZFS_JAIL_MNT/stage/compat/linux/tmp"
start_staged_jail centos
install_centos
promote_staged_jail centos
4 changes: 4 additions & 0 deletions provision/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ install_ubuntu()

base_snapshot_exists || exit 1
create_staged_fs ubuntu
for _fs in dev proc sys tmp home; do
mkdir -p "$ZFS_JAIL_MNT/stage/compat/linux/$_fs"
done
chmod 777 "$ZFS_JAIL_MNT/stage/compat/linux/tmp"
start_staged_jail ubuntu
install_ubuntu
promote_staged_jail ubuntu

0 comments on commit c0800f4

Please sign in to comment.