chroot 상태 확인

from https://unix.stackexchange.com/questions/14345/how-do-i-tell-im-running-in-a-chroot

Readline Colored Completion

Read This

grub PARTUUID

Read This
This is a 5 year old thread. But still it is imho not fully answered. There's a little example missing. Here it is:

In this example:

/dev/sda3 = / /dev/sda2 = swap …using a GPT partition. With MBR (dos partition) the PARTUUID's are shorter but the procedure is the same…

get the PARTUUID's with blkid: /boot/grub/grub.cfg: /etc/fstab/: This is known to WORK with lfs8.1 (kernel 4.12.7) But i think it should work with most other kernels too (olders and newers…)