I think I found it. Move /etc/initramfs-tools/conf.d/driver-policy out of the way and run update-initramfs -u and then make a new snapshot.
That was is it, the snapshot is now working as it should. Thanks again fsmithred.
Do you think this might be the issue with computer bobs snapshot ?
]]>I unpacked both initrd.img, the bad iso is 48mb smaller than the good iso when unpacked. The bad iso is missing a lot of kernel object .ko files. I couldnt see an option to extract a report or log from meld to post here. But yeah huge difference.
]]>from the mounted usb stick.
If i use the command you suggested i get this...
/liveiso/live $ lsinitramfs "$initrd.img" | egrep "resume|cryptroot|crypttab|askpass"
/usr/bin/unmkinitramfs: 62: /usr/bin/unmkinitramfs: cannot open .img: No such file
/usr/bin/unmkinitramfs: 55: /usr/bin/unmkinitramfs: cannot open .img: No such file
/usr/bin/unmkinitramfs: 36: /usr/bin/unmkinitramfs: cannot open .img: No such file
/usr/bin/unmkinitramfs: 36: /usr/bin/unmkinitramfs: lz4cat: not found
cpio: premature end of archive
without the $ and quotes aka "$initrd.img"...
/liveiso/live $ lsinitramfs initrd.img | egrep "resume|cryptroot|crypttab|askpass"
cryptroot
scripts/local-top/cryptroot
scripts/local-premount/resume
scripts/local-block/cryptroot
usr/bin/cryptroot-unlock
usr/bin/resume
lsinitramfs "$initrd.img" | egrep "resume|cryptroot|crypttab|askpass"
Note: in the previous post I started the command with '#' which suggests it needs to be run as root, but that is not the case. You can run the command as user.
]]>http://dev1galaxy.org/viewtopic.php?pid=28139#p28139
dice wrote:Hi fsmithred, does refractasnapshot depend on having "initrd (initial ram disk): generic (all available drivers)" as opposed to "only select drivers to suit this hardware", during expert install? I have a feeling this is where the initramfs is failing.
Wow. Excellent question. I don't know the answer. I can't recall if this has ever come up in the 10 years I've been maintaining that script. I would expect a snapshot with limited drivers would only boot on the same or similar hardware.
That option is probably set in /etc/initramfs-tools/initramfs.conf. Compare the one with limited drivers to one with all available. If there's something obvious to change, change it, rebuild initramfs and make a new snapshot. update-initramfs -u
If you want to save time in the above procedure, make the new initrd.img and copy it to /home/work/iso/live and then run refractasnapshot, but choose the option to run xorriso only. You'll be done in one minute.
I don't think I've ever done an install with drivers limited to the current hardware. I always assume that my old boxen will die and I'll have to move the hard drive to another computer.
Edit: if you do the shortcut in this case, and you use that iso to install on another system, you will need to edit initramfs.conf in that system. That could be done in the live system before install. That way when the initrd gets rebuilt during the install it will be good.
Edit 2: change initramfs.conf in /home/work/myfs/ and run the re-squash option in refractasnapshot. That will avoid the problem mentioned in the first edit. It'll take longer, too.
Ok so i had a look at both /etc/initramfs-tools/initramfs.conf , both are the same for limited drivers and all available.
What drivers get missed when using the limited drivers option in the expert install, i cant seem to figure that out?
I tried dice's qemu command (without the sudo) and my iso boots as cdrom or as disk. I'm pretty sure the problem is in the initramfs.
dice, please run:
lsinitramfs /initrd.img | egrep "resume|cryptroot|crypttab|askpass" file -L /initrd.img
To answer this question from here http://dev1galaxy.org/viewtopic.php?pid=28136#p28136
This is from the system that has limited drivers and wont boot the snaphot.
# lsinitramfs /initrd.img | egrep "resume|cryptroot|crypttab|askpass"
conf/conf.d/resume
cryptroot
cryptroot/crypttab
scripts/local-block/cryptroot
scripts/local-premount/resume
scripts/local-top/cryptroot
usr/bin/cryptroot-unlock
usr/bin/resume
# file -L /initrd.img
/mnt/initrd.img: gzip compressed data, last modified: Sun Mar 14 09:21:56 2021, from Unix, original size 66083840