[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Persistence not working on live debian



Thank you, I selected hdd instead of iso-hybrid (now I can see, that it is written in documentation that I need hdd for persistence on same disk) - but still no luck!

I have added debug to kernel param and attached boot.log
"live-rw" labeled system is at /dev/sda2

I tried to debug it with my kvm virtual machine, but virtual attached disks are not marked as removable (/sys/block/*/removable) so I expect, that cannot hold persistent data (can I override it somehow?).

Still there is minor bug, that in syslinux live.cfg menu is line
"menu default" at normal and failsafe section, so failsafe is selected by default.

Jan

On 2012-11-03 09:32, Ben Armstrong wrote:
On 02/11/12 09:35 PM, Jan Pekař wrote:
Hi,

I just created few debian-live hybrid isos from
http://live-build.debian.net/cgi-bin/live-build, and tried to make them
persistent, but no success.
Can somebody help me with that?
I attached build config.

I just dd the iso to my flash drive, create another partition from free
space. Labeled it live-rw and nothing happens after boot.

Select --binary-images hdd, not the default, iso-hybrid.

Ben

+ tailpid=173
+ . /live.vars
+ cat /proc/cmdline
+ tail -f boot.log
+ _CMDLINE=initrd=/live/initrd.img boot=live config persistent debug BOOT_IMAGE=/live/vmlinuz 
+ Cmdline
+ LIVE_DEBUG=true
+ [ -z  ]
+ [  = /dev/nfs ]
+ [  = /dev/cifs ]
+ [ -z  ]
+ MODULE=filesystem
+ export MODULE
+ [ -z  ]
+ UNIONTYPE=aufs
+ export UNIONTYPE
+ [ -z  ]
+ PERSISTENCE_ENCRYPTION=none
+ export PERSISTENCE_ENCRYPTION
+ [ -z  ]
+ PERSISTENCE_METHOD=overlay
+ export PERSISTENCE_METHOD
+ [ -z  ]
+ PERSISTENCE_STORAGE=filesystem,file
+ export PERSISTENCE_STORAGE
+ set -x
+ Select_eth_device
+ tail -1
+ egrep ^BOOT= /conf/initramfs.conf
+ bootconf=
+ cat /proc/cmdline
+ [  != BOOT=nfs ]
+ [ -z  ]
+ [ -z  ]
+ [ -z  ]
+ [ -z  ]
+ return
+ [ ! -z  ]
+ [ ! -z  ]
+ [ ! -z  ]
+ [ ! -z  ]
+ [ -n  ]
+ [ -n  ]
+ [ -x /usr/bin/memdiskfind ]
+ i=0
+ [ 0 -lt 60 ]
+ find_livefs 0
+ timeout=0
+ [ -n  ]
+ [ ! -z  ]
+ removable_dev sys
+ output_format=sys
+ want_usb=
+ ret=
+ grep -vE /(loop|ram|dm-|fd)
+ tr   \n
+ echo /sys/block/*
+ dev_ok=
+ cat /sys/block/*/removable
cat: can't open '/sys/block/*/removable': No such file or directory
+ [  = 1 ]
+ [  = true ]
+ echo 
+ non_removable_dev sys
+ output_format=sys
+ ret=
+ grep -vE /(loop|ram|dm-|fd)
+ tr   \n
+ echo /sys/block/*
+ cat /sys/block/*/removable
cat: can't open '/sys/block/*/removable': No such file or directory
+ [  = 0 ]
+ echo 
+ devices_to_scan= 
+ return 1
+ livefs_root=
+ [ -n  ]
+ sleep 1
+ i=1
+ [ 1 -lt 60 ]
+ find_livefs 1
+ timeout=1
+ [ -n  ]
+ [ ! -z  ]
+ removable_dev sys
+ output_format=sys
+ want_usb=
+ ret=
+ grep -vE /(loop|ram|dm-|fd)
+ tr   \n
+ echo /sys/block/*
+ dev_ok=
+ cat /sys/block/*/removable
cat: can't open '/sys/block/*/removable': No such file or directory
+ [  = 1 ]
+ [  = true ]
+ echo 
+ non_removable_dev sys
+ output_format=sys
+ ret=
+ grep -vE /(loop|ram|dm-|fd)
+ tr   \n
+ echo /sys/block/*
+ cat /sys/block/*/removable
cat: can't open '/sys/block/*/removable': No such file or directory
+ [  = 0 ]
+ echo 
+ devices_to_scan= 
+ return 1
+ livefs_root=
+ [ -n  ]
+ sleep 1
+ i=2
+ [ 2 -lt 60 ]
+ find_livefs 2
+ timeout=2
+ [ -n  ]
+ [ ! -z  ]
+ removable_dev sys
+ output_format=sys
+ want_usb=
+ ret=
+ grep -vE /(loop|ram|dm-|fd)
+ tr   \n
+ echo /sys/block/sda
+ dev_ok=
+ cat /sys/block/sda/removable
+ [ 1 = 1 ]
+ [ -z  ]
+ dev_ok=true
+ [ true = true ]
+ ret= /sys/block/sda
+ echo  /sys/block/sda
+ non_removable_dev sys
+ output_format=sys
+ ret=
+ grep -vE /(loop|ram|dm-|fd)
+ tr   \n
+ echo /sys/block/sda
+ cat /sys/block/sda/removable
+ [ 1 = 0 ]
+ echo 
+ devices_to_scan= /sys/block/sda 
+ sys2dev /sys/block/sda
+ sysdev=/block/sda
+ /sbin/udevadm info -q name -p /block/sda
+ echo /dev/sda
+ devname=/dev/sda
+ [ -e /dev/sda ]
+ get_fstype /dev/sda
+ /sbin/blkid -s TYPE -o value /dev/sda
+ fstype=
+ /lib/udev/cdrom_id /dev/sda
+ is_nice_device /sys/block/sda
+ sysfs_path=/block/sda
+ [ -e /lib/udev/path_id ]
+ PATH_ID=/sbin/udevadm test-builtin path_id
+ egrep -q ID_PATH=(usb|pci-[^-]*-(ide|sas|scsi|usb|virtio)|platform-sata_mv|platform-orion-ehci|platform-mmc|platform-mxsdhci)
+ /sbin/udevadm test-builtin path_id /block/sda
+ return 0
+ subdevices /sys/block/sda
+ sysblock=/sys/block/sda
+ r=
+ [ -e /sys/block/sda/alignment_offset/dev ]
+ [ -e /sys/block/sda/bdi/dev ]
+ [ -e /sys/block/sda/capability/dev ]
+ [ -e /sys/block/sda/dev/dev ]
+ [ -e /sys/block/sda/device/dev ]
+ [ -e /sys/block/sda/discard_alignment/dev ]
+ [ -e /sys/block/sda/events/dev ]
+ [ -e /sys/block/sda/events_async/dev ]
+ [ -e /sys/block/sda/events_poll_msecs/dev ]
+ [ -e /sys/block/sda/ext_range/dev ]
+ [ -e /sys/block/sda/holders/dev ]
+ [ -e /sys/block/sda/inflight/dev ]
+ [ -e /sys/block/sda/power/dev ]
+ [ -e /sys/block/sda/queue/dev ]
+ [ -e /sys/block/sda/range/dev ]
+ [ -e /sys/block/sda/removable/dev ]
+ [ -e /sys/block/sda/ro/dev ]
+ [ -e /sys/block/sda/sda1/dev ]
+ r= /sys/block/sda/sda1
+ [ -e /sys/block/sda/sda2/dev ]
+ r= /sys/block/sda/sda1 /sys/block/sda/sda2
+ [ -e /sys/block/sda/size/dev ]
+ [ -e /sys/block/sda/slaves/dev ]
+ [ -e /sys/block/sda/stat/dev ]
+ [ -e /sys/block/sda/subsystem/dev ]
+ [ -e /sys/block/sda/trace/dev ]
+ [ -e /sys/block/sda/uevent/dev ]
+ [ -e /sys/block/sda/dev ]
+ r= /sys/block/sda/sda1 /sys/block/sda/sda2 /sys/block/sda
+ echo /sys/block/sda/sda1 /sys/block/sda/sda2 /sys/block/sda
+ check_dev /sys/block/sda/sda1
+ sysdev=/sys/block/sda/sda1
+ devname=
+ skip_uuid_check=
+ [ -n  ]
+ [ -z  ]
+ sys2dev /sys/block/sda/sda1
+ sysdev=/block/sda/sda1
+ /sbin/udevadm info -q name -p /block/sda/sda1
+ echo /dev/sda1
+ devname=/dev/sda1
+ [ -d /dev/sda1 ]
+ IFS=,
+ unset IFS
+ [ -n /dev/sda1 ]
+ devname=/dev/sda1
+ [ -e /dev/sda1 ]
+ [ -n  ]
+ get_fstype /dev/sda1
+ /sbin/blkid -s TYPE -o value /dev/sda1
+ fstype=vfat
+ is_supported_fs vfat
+ fstype=vfat
+ [ -z vfat ]
+ grep -q vfat /proc/filesystems
+ modprobe vfat
+ grep -q vfat /proc/filesystems
+ return 0
+ blkid -o value -s UUID /dev/sda1
+ devuid=7D5A-7C5E
+ [ -n 7D5A-7C5E ]
+ grep -qs \<7D5A-7C5E\> /tmp/tried
+ mount -t vfat -o ro,noatime /dev/sda1 /live/image
+ [ -n 7D5A-7C5E ]
+ echo 7D5A-7C5E
+ [ -n  ]
+ is_live_path /live/image
+ DIRECTORY=/live/image
+ [ -d /live/image/live ]
+ echo /live/image/live/filesystem.squashfs
+ [ /live/image/live/filesystem.squashfs != /live/image/live/*.squashfs ]
+ return 0
+ [  ]
+ matches_uuid /live/image
+ [  ]
+ [ ! -e /conf/uuid.conf ]
+ return 0
+ echo /live/image
+ return 0
+ return 0
+ livefs_root=/live/image
+ [ -n /live/image ]
+ break
+ [ -z /live/image ]
+ [  ]
+ [  ]
+ [  ]
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ get_mac
+ mac=
+ cat /sys/class/net/eth0/iflink
+ status=2
+ [ 2 -eq 2 ]
+ cat /sys/class/net/eth0/address
+ mac=bc:ae:c5:8b:6c:7c
+ tr [a-z] [A-Z]
+ sed s/:/-/g
+ echo bc:ae:c5:8b:6c:7c
+ mac=BC-AE-C5-8B-6C-7C
+ cat /sys/class/net/lo/iflink
+ status=1
+ [ 1 -eq 2 ]
+ echo BC-AE-C5-8B-6C-7C
+ mac=BC-AE-C5-8B-6C-7C
+ sed s/-//g
+ echo BC-AE-C5-8B-6C-7C
+ mac=BCAEC58B6C7C
+ mount_images_in_directory /live/image /root BCAEC58B6C7C
+ directory=/live/image
+ rootmnt=/root
+ mac=BCAEC58B6C7C
+ match_files_in_dir /live/image/live/*.squashfs
+ local pattern=/live/image/live/*.squashfs
+ echo /live/image/live/filesystem.squashfs
+ [ /live/image/live/filesystem.squashfs != /live/image/live/*.squashfs ]
+ return 0
+ [ -n BCAEC58B6C7C ]
+ adddirectory=/live/image/live/BCAEC58B6C7C
+ setup_unionfs /live/image/live /root /live/image/live/BCAEC58B6C7C
+ image_directory=/live/image/live
+ rootmnt=/root
+ addimage_directory=/live/image/live/BCAEC58B6C7C
+ modprobe -q -b aufs
+ grep -q ^aufs$
+ cut -f2 /proc/filesystems
+ croot=/
+ rofslist=
+ [ -z  ]
+ [ -e /live/image/live/filesystem.filesystem.module ]
+ [ -e /live/image/live/filesystem.module ]
+ [ -e /live/image/live/filesystem.squashfs ]
+ image_string= /live/image/live/filesystem.squashfs
+ [ -e /live/image/live/*.ext2 ]
+ [ -e /live/image/live/*.ext3 ]
+ [ -e /live/image/live/*.ext4 ]
+ [ -e /live/image/live/*.xfs ]
+ [ -e /live/image/live/*.jffs2 ]
+ [ -e /live/image/live/*.dir ]
+ [ -n /live/image/live/BCAEC58B6C7C ]
+ [ -d /live/image/live/BCAEC58B6C7C ]
+ sort
+ sed -e s/ /\n/g
+ echo /live/image/live/filesystem.squashfs
+ image_string=/live/image/live/filesystem.squashfs
+ [ -n  ]
+ mkdir -p /
+ basename /live/image/live/filesystem.squashfs
+ imagename=filesystem.squashfs
+ export image devname
+ maybe_break live-realpremount
+ [  = live-realpremount ]
+ log_begin_msg Running /scripts/live-realpremount
+ _log_msg Begin: Running /scripts/live-realpremount ... 
+ [ n = y ]
+ printf Begin: Running /scripts/live-realpremount ... 
Begin: Running /scripts/live-realpremount ... + run_scripts /scripts/live-realpremount
+ initdir=/scripts/live-realpremount
+ [ ! -d /scripts/live-realpremount ]
+ return
+ log_end_msg
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ [ -d /live/image/live/filesystem.squashfs ]
+ [ -f /live/image/live/filesystem.squashfs ]
+ grep -q -- -r\b
+ losetup --help
+ get_backing_device /live/image/live/filesystem.squashfs -r
+ setup_loop /live/image/live/filesystem.squashfs loop /sys/block/loop* 0  -r
+ local fspath=/live/image/live/filesystem.squashfs
+ local module=loop
+ local pattern=/sys/block/loop*
+ local offset=0
+ local encryption=
+ local readonly=-r
+ modprobe -q -b loop
+ udevadm settle
+ cat /sys/block/loop0/size
+ [ 0 -eq 0 ]
+ sys2dev /sys/block/loop0
+ sysdev=/block/loop0
+ /sbin/udevadm info -q name -p /block/loop0
+ echo /dev/loop0
+ dev=/dev/loop0
+ options=
+ [ -n -r ]
+ grep -q -- -r\b
+ losetup --help
+ options= -r
+ [ -n 0 ]
+ [ 0 -lt 0 ]
+ [ -z  ]
+ losetup -r /dev/loop0 /live/image/live/filesystem.squashfs
+ echo /dev/loop0
+ return 0
+ echo /dev/loop0
+ backdev=/dev/loop0
+ get_fstype /dev/loop0
+ /sbin/blkid -s TYPE -o value /dev/loop0
+ fstype=squashfs
+ mpoint=//filesystem.squashfs
+ rofslist=//filesystem.squashfs 
+ mkdir -p //filesystem.squashfs
+ log_begin_msg Mounting "/live/image/live/filesystem.squashfs" on "//filesystem.squashfs" via "/dev/loop0"
+ _log_msg Begin: Mounting "/live/image/live/filesystem.squashfs" on "//filesystem.squashfs" via "/dev/loop0" ... 
+ [ n = y ]
+ printf Begin: Mounting "/live/image/live/filesystem.squashfs" on "//filesystem.squashfs" via "/dev/loop0" ... 
Begin: Mounting "/live/image/live/filesystem.squashfs" on "//filesystem.squashfs" via "/dev/loop0" ... + mount -t squashfs -o ro,noatime /dev/loop0 //filesystem.squashfs
+ log_end_msg
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ touch /etc/fstab
+ mkdir -p /live
+ mount -t tmpfs tmpfs /live
+ mkdir -p /live/overlay
+ [ -n  ]
+ [ -n  ]
+ [ -z  ]
+ cowdevice=tmpfs
+ cow_fstype=tmpfs
+ cow_mountopt=rw,noatime,mode=755
+ [ aufs != unionmount ]
+ [ -n  ]
+ root_backing=/live/overlay
+ [ tmpfs = nfs ]
+ mount -t tmpfs -o rw,noatime,mode=755 tmpfs /live/overlay
+ wc -w
+ echo //filesystem.squashfs
+ rofscount=1
+ rofs=//filesystem.squashfs
+ [ -n  ]
+ cow_dirs=/
+ [ tmpfs != tmpfs ]
+ unionmountpoint=/root/
+ mkdir -p /root/
+ [ aufs = unionmount ]
+ cow_dir=/live/overlay/
+ rofs_dir=//filesystem.squashfs/
+ mkdir -p /live/overlay/
+ [ -n  ]
+ do_union /root/ /live/overlay/ //filesystem.squashfs/
+ local unionmountpoint=/root/
+ local unionrw=/live/overlay/
+ local unionro1=//filesystem.squashfs/
+ local unionro2=
+ rw_opt=rw
+ ro_opt=rr+wh
+ noxino_opt=noxino
+ unionmountopts=-o noatime,noxino,dirs=/live/overlay/=rw
+ [ -n //filesystem.squashfs/ ]
+ unionmountopts=-o noatime,noxino,dirs=/live/overlay/=rw://filesystem.squashfs/=rr+wh
+ [ -n  ]
+ mount -t aufs -o noatime,noxino,dirs=/live/overlay/=rw://filesystem.squashfs/=rr+wh aufs /root/
+ chmod 0755 /root
+ live_rofs_list=
+ true
+ live_rofs=/live/rofs/filesystem.squashfs
+ live_rofs_list= /live/rofs/filesystem.squashfs
+ mkdir -p /live/rofs/filesystem.squashfs
+ mount -o move //filesystem.squashfs /live/rofs/filesystem.squashfs
+ [ -n  ]
+ mkdir -p /root/live
+ mount -o move /live /root/live
+ mkdir -p /root/live/overlay
+ mount -o move /live/overlay /root/live/overlay
+ mount -o bind /overlay /root/live/overlay
mount: mounting /overlay on /root/live/overlay failed: No such file or directory
+ log_warning_msg Unable to move or bind /overlay to /root/live/overlay
+ _log_msg Warning: Unable to move or bind /overlay to /root/live/overlay\n
+ [ n = y ]
+ printf Warning: Unable to move or bind /overlay to /root/live/overlay\n
Warning: Unable to move or bind /overlay to /root/live/overlay
+ [ -n  ]
+ log_end_msg
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ [ ! -d /root/live/image ]
+ mkdir -p /root/live/image
+ mount --move /live/image /root/live/image
+ ls /root/bin /root/boot /root/dev /root/etc /root/home /root/initrd.img /root/lib /root/live /root/media /root/mnt /root/opt /root/proc /root/root /root/run /root/sbin /root/selinux /root/srv /root/sys /root/tmp /root/usr /root/var /root/vmlinuz
+ [ -d /live/findiso ]
+ [ -n  ]
+ [ -f /etc/resolv.conf ]
+ [ -d /lib/live/boot ]
+ Fstab
+ . /scripts/functions
+ . /lib/live/boot/initramfs-tools.sh
+ [ -n  ]
+ [ -e /run ]
+ _FSTAB=/root/etc/fstab.d/live
+ log_begin_msg Configuring fstab
+ _log_msg Begin: Configuring fstab ... 
+ [ n = y ]
+ printf Begin: Configuring fstab ... 
Begin: Configuring fstab ... + grep -qs ^aufs /root/etc/fstab.d/live
+ echo aufs / aufs rw 0 0
+ grep -qs ^tmpfs /tmp /root/etc/fstab.d/live
+ echo tmpfs /tmp tmpfs nosuid,nodev 0 0
+ log_end_msg
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ Netbase
+ [ -n  ]
+ . /scripts/functions
+ . /lib/live/boot/initramfs-tools.sh
+ log_begin_msg Preconfiguring networking
+ _log_msg Begin: Preconfiguring networking ... 
+ [ n = y ]
+ printf Begin: Preconfiguring networking ... 
Begin: Preconfiguring networking ... + IFFILE=/root/etc/network/interfaces
+ [  = frommedia ]
+ cat
+ udevadm trigger
+ udevadm settle
+ [ -z  ]
+ [ -n  ]
+ [ -z  ]
+ method=dhcp
+ [ dhcp != dhcp ]
+ [ ! -x /root/usr/sbin/NetworkManager ]
+ [ ! -x /root/usr/sbin/wicd ]
+ [ -e /sys/class/net/eth0 ]
+ basename /sys/class/net/eth0
+ i=eth0
+ cat
+ [ -e /sys/class/net/ath* ]
+ continue
+ [ -e /sys/class/net/wlan* ]
+ continue
+ [ ! -f /root/etc/resolv.conf ]
+ cat /root/etc/resolv.conf
+ [ -z  ]
+ [ -f /netboot.config ]
+ log_end_msg
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ exec
+ exec

Reply to: