+ kvm -m 256 -nographic -kernel live/boot/vmlinuz -initrd live/boot/initrd.img -append 'console=ttyS0 root=/dev/vda loglevel=1 security=selinux boot=overlaytest' -drive file=live/boot/filesystem.squashfs,index=0,media=disk,if=virtio -net nic,model=virtio Warning: vlan 0 is not connected to host network Loading, please wait... Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/nfs-top ... done. Begin: Running /scripts/nfs-premount ... done. + : --> Mount a tmpfs on /live for use by overlay + mkdir /live + mount -t tmpfs tmpfs /live + : --> Make the two subdirs required by overlay + mkdir -p /live/overlay/rw /live/overlay/work + : --> Make /filesystem to mount the read-only squashfs + mkdir /filesystem + : --> Create a /etc directory in what will become the writable portion of + : --> the overlay filesystem + mkdir -p /live/overlay/rw/etc + : --> Mount the squashfs + mount -t squashfs /dev/vda /filesystem + : --> Union the tmpfs and the squashfs with overlayfs and mount them on + : --> /root + mount -t overlay -o noatime,lowerdir=/filesystem/,upperdir=/live/overlay/rw,workdir=/live/overlay/work overlay /root/ + : --> Demonstrate that creating a file... + touch /root/newfile + : --> ... creating a directory... + mkdir -p /root/newdir + : --> ... and creating a file in the new directory all work in the + : --> root of the overlay filesystem... + touch /root/newdir/newfile + : --> ...before cleaning up those files/dirs + rm -r /root/newfile /root/newdir/newfile /root/newdir + : --> Demonstrate that touching an existing directory (/etc, which we + : --> created earlier), and a file within it, works + touch /root/etc/ + touch /root/etc/newfile + : --> Demonstrate that touching a directory or file not already present in + : --> the read-write part of overlay does *NOT* work + touch /root/home/ touch: /root/home/: Operation not supported + touch /root/home/newfile touch: /root/home/newfile: Operation not supported + set +x Spawning shell within the initramfs modprobe: module ehci-orion not found in modules.dep BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash) Enter 'help' for a list of built-in commands. /bin/sh: can't access tty; job control turned off (initramfs) strace touch /root/home/newfile execve("/bin/touch", ["touch", "/root/home/newfile"], [/* 32 vars */]) = 0 brk(0) = 0x1db8000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64fcfce000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=1358, ...}) = 0 mmap(NULL, 1358, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f64fcfcd000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\34\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1729984, ...}) = 0 mmap(NULL, 3836448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64fca07000 mprotect(0x7f64fcba6000, 2097152, PROT_NONE) = 0 mmap(0x7f64fcda6000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19f000) = 0x7f64fcda6000 mmap(0x7f64fcdac000, 14880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64fcdac000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64fcfcc000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64fcfcb000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64fcfca000 arch_prctl(ARCH_SET_FS, 0x7f64fcfcb700) = 0 mprotect(0x7f64fcda6000, 16384, PROT_READ) = 0 mprotect(0x69a000, 4096, PROT_READ) = 0 mprotect(0x7f64fcfd0000, 4096, PROT_READ) = 0 munmap(0x7f64fcfcd000, 1358) = 0 getuid() = 0 utimes("/root/home/newfile", NULL) = -1 ENOENT (No such file or directory) open("/root/home/newfile", O_RDWR|O_CREAT, 0666) = -1 EOPNOTSUPP (Operation not supported) brk(0) = 0x1db8000 brk(0x1dd9000) = 0x1dd9000 write(2, "touch: /root/home/newfile: Opera"..., 51touch: /root/home/newfile: Operation not supported ) = 51 exit_group(1) = ? +++ exited with 1 +++ (initramfs)