Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase size of temp fs #53

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion builder/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keyring="$(realpath "$4")"
output="$5"

chroot_dir="$(mktemp -d)"
mount -t tmpfs -o size=2G tmpfs "$chroot_dir"
mount -t tmpfs -o size=4G tmpfs "$chroot_dir"
chmod 755 "$chroot_dir"
container=lxc debootstrap --keyring "$keyring" --arch "$arch" --variant minbase "$version" "$chroot_dir" "$repo" trixie || (cat "$chroot_dir/debootstrap/debootstrap.log"; false)

Expand Down
2 changes: 1 addition & 1 deletion builder/configure
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ output="$3"
IFS=',' read -r -a features <<< "$BUILDER_FEATURES"

chroot_dir="$(mktemp -d)"
mount -t tmpfs -o size=2G tmpfs "$chroot_dir"
mount -t tmpfs -o size=4G tmpfs "$chroot_dir"
chmod 755 "$chroot_dir"
chcon system_u:object_r:unlabeled_t:s0 "$chroot_dir"

Expand Down
2 changes: 1 addition & 1 deletion builder/configure_nativetools
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ shift 2
touch "$output"

chroot_dir="$(mktemp -d)"
mount -t tmpfs -o size=2G tmpfs "$chroot_dir"
mount -t tmpfs -o size=4G tmpfs "$chroot_dir"
chmod 755 "$chroot_dir"
chcon system_u:object_r:unlabeled_t:s0 "$chroot_dir"

Expand Down
2 changes: 1 addition & 1 deletion builder/image
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ echo "---------------"

image="$(mktemp -u)"
chroot_dir="$(mktemp -d)"
mount -t tmpfs -o size=2G tmpfs "$chroot_dir"
mount -t tmpfs -o size=4G tmpfs "$chroot_dir"
tar --extract --xattrs --xattrs-include '*' --directory "$chroot_dir" < "$input"

(export PATH="/builder/image.d:$PATH"; makepart "$chroot_dir" < "$fstab" | makedisk "$chroot_dir" "$image")
Expand Down
4 changes: 2 additions & 2 deletions builder/image.d/makepart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exec 1>&2
rootfs="$1"

rootfs_work=$(mktemp -d)
mount -t tmpfs -o size=2G tmpfs "$rootfs_work"
mount -t tmpfs -o size=4G tmpfs "$rootfs_work"
cp -a "$rootfs/." "$rootfs_work"

fstab="$(mktemp)"
Expand Down Expand Up @@ -143,7 +143,7 @@ sed 's/#.*//;/^[[:space:]]*$/d' \
[ ! -e "$rootfs/builder" ]
mkdir "$rootfs/builder"
mount --rbind --make-rprivate /builder "$rootfs/builder"
mount -t tmpfs -o size=2G none "$rootfs/tmp"
mount -t tmpfs -o size=4G none "$rootfs/tmp"
[[ "$data_source" == /tmp* ]]
[ "$(dirname "$file")" = /tmp ]
mkdir -p "$rootfs$data_source"
Expand Down
2 changes: 1 addition & 1 deletion builder/image.d/makesecureboot
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ mount --rbind /dev "$rootfs/dev"
kernel_file=$(find "$rootfs/boot/" -name 'vmlinuz-*')
kernel_version="${kernel_file#*-}"

unshare --user --map-root-user --mount -- bash -c 'mount -t tmpfs -o size=2G tmpfs '"$rootfs/var/tmp"' && mount -t tmpfs -o size=2G tmpfs /sys && mount --bind /usr/bin/false /usr/bin/systemd-detect-virt && "$@"' -- \
unshare --user --map-root-user --mount -- bash -c 'mount -t tmpfs -o size=4G tmpfs '"$rootfs/var/tmp"' && mount -t tmpfs -o size=4G tmpfs /sys && mount --bind /usr/bin/false /usr/bin/systemd-detect-virt && "$@"' -- \
chroot "$rootfs" env dracut \
--no-hostonly \
--force \
Expand Down