Skip to content

Commit

Permalink
Merge pull request #91 from jean-edouard/stable-8-upgrade-tmpfs-fix
Browse files Browse the repository at this point in the history
STABLE-8: [upgrade] Increase tpmfs size and unmount all fs
  • Loading branch information
eric-ch authored Jul 3, 2018
2 parents f959760 + 4aee264 commit 029fb9d
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions part2/stages/Functions/install-main
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,7 @@ seal_system() {

mount_config || {
echo "failed to mount config" >&2
do_umount ${DOM0_MOUNT}/boot/system
do_umount ${DOM0_MOUNT}/tmp
do_umount ${DOM0_MOUNT}/dev
do_umount ${DOM0_MOUNT}/sys
do_umount ${DOM0_MOUNT}
do_umount_all ${DOM0_MOUNT}
return 1
}

Expand All @@ -454,23 +450,12 @@ seal_system() {
chroot ${DOM0_MOUNT} /usr/sbin/seal-system -f -r ${ROOT_DEV}
/etc/init.d/trousers start

do_umount ${DOM0_MOUNT}/config
do_umount ${DOM0_MOUNT}/boot/system
do_umount ${DOM0_MOUNT}/tmp
do_umount ${DOM0_MOUNT}/dev
do_umount ${DOM0_MOUNT}/sys
do_umount ${DOM0_MOUNT}/proc
do_umount ${DOM0_MOUNT}
do_umount_all ${DOM0_MOUNT}

return 0
fi

do_umount ${DOM0_MOUNT}/boot/system
do_umount ${DOM0_MOUNT}/tmp
do_umount ${DOM0_MOUNT}/dev
do_umount ${DOM0_MOUNT}/sys
do_umount ${DOM0_MOUNT}/proc
do_umount ${DOM0_MOUNT}
do_umount_all ${DOM0_MOUNT}
return 1
fi
fi
Expand All @@ -479,7 +464,7 @@ seal_system() {
mount_dom0()
{
local ROOT="$1"
local tmpfsopts="size=32M"
local tmpfsopts="size=64M"
if selinux_enforced ; then
tmpfsopts="$tmpfsopts,rootcontext=system_u:object_r:tmp_t:s0"
fi
Expand Down

0 comments on commit 029fb9d

Please sign in to comment.