On 01/04/15 at 01:33pm, WANG Chao wrote:
On 01/04/15 at 01:16pm, Baoquan He wrote:
@@ -101,8 +101,16 @@ to_mount() {
>
> _source=$(findmnt -k -f -n -r -o SOURCE $_dev)
> _target=$(findmnt -k -f -n -r -o TARGET $_dev)
> - # mount under /sysroot in 2nd kernel, and we umount -R /sysroot before exit
> - _target="/sysroot$_target"
> + # mount under /sysroot if dump to root disk or mount under
> + #/kdumproot/$_target in other cases in 2nd kernel, and we
> + #umount -R /sysroot or /kdumproot/$_target before exit
Sorry I didn't remember correctly at the first place so I probally gave
a wrong comment previously.
Actually above comment is incorrect. We don't unmount any fs manually
right now. We let systemd take care of unmounting. Check out the
following commit:
commit 5a77531
Author: WANG Chao <chaowang(a)redhat.com>
Date: Tue Aug 5 13:18:35 2014 +0800
Let systemd handle unmount
I think we can remove the comment or change it, say "systemd will take
care of unmounting" or something like that.
Saying something is better, I will change it to systemd being in charge.
Thanks
WANG Chao
> +
> + if [ $_target = "/" ];then
> + _target="/sysroot"
> + else
> + _target="/kdumproot/$_target"
> + fi
> +
> _fstype=$(findmnt -k -f -n -r -o FSTYPE $_dev)
> _options=$(findmnt --fstab -f -n -r -o OPTIONS $_dev)
> [ -z "$_options" ] && _options=$(findmnt -k -f -n -r -o
OPTIONS $_dev)
> --
> 1.8.5.3
>