Web lists-archives.com

Re: Restore backup to KVM




	Hi.

On Fri, Sep 29, 2017 at 06:30:21AM +0200, solitone wrote:
> On 28/09/17 08:58, Reco wrote:
> > It's initrd that first tries to mount tmpfs filesystems on /root (and
> > fails), and only *then* mounts your root filesystem to /root (with the
> > intention to switch to it as /).
> 
> Is the stock initrd supposed to work like this? When I boot my production
> system, I end up with tmpfs mounted on /run:
> 
> $ df
> Filesystem       1K-blocks      Used  Available Use% Mounted on
> udev               4027784         0    4027784   0% /dev
> tmpfs               807952      1352     806600   1% /run
> /dev/sda5         85825416  58793224   22629416  73% /

These are initrd doing.


> tmpfs              4039744      4972    4034772   1% /dev/shm
> tmpfs                 5120         4       5116   1% /run/lock
> tmpfs              4039744         0    4039744   0% /sys/fs/cgroup
> /dev/sda1           201633     23678     177955  12% /boot/efi
> tmpfs               807948         0     807948   0% /run/user/113
> tmpfs               807948        20     807928   1% /run/user/1000

These are mounted by whatever init you're using (e.g. /etc/fstab,
sysvinit, systemd).


> Also, I don't understand why it needs to mount the root filesystem to /root.

Tomorrow I'll do some test, read the source, etc. I don't understand it
too so far.