Solved: Customize initramfs SD fallback
|
3rd Aug, 2014, 01:26 AM
Post: #4
|
|||
|
|||
RE: Customize initramfs for SD fallback
Ok, I have it running now and it works nicely!
I'm going to write a blog post on this, but in the meanwhile: Please find the little shell script attached. The script accepts one option which can either be fallback which tries to restore the SD as root filesystem, or restore which tries to restore the USB hard drive as rootfs. The modified init script is attached as well: the initial suggestion to slightly alter line 182 wasn't perfect as that line happen to get executed too late in the init process, but the suggestion was more or less correct. The altered init scripts tries to fallback to SD card root fs and, if it succeeds, it automatically restart your RPi to apply the modifications. Don't worry the script doesn't keep rebooting your RPi indefinitely The other steps are the same as suggested by CurlyMo and I'll update this post to a link to my blog once I've the post published. To use this script you need to copy your cmdline.txt file into cmdline.sd.txt before altering it to use the USB as rootfs: this file will be used by the fallback proceedure. Once the fallback proceedure is applied, in case you want to restore your USB rootfs you just have to execute the same script with the restore option. Thanks a million to CurlyMo and everybody else. Next step: automatically sync the root filesystem between USB and SD: going to open another topic! |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Customize initramfs SD fallback - rlogiacco - 31st Jul, 2014, 05:58 PM
RE: Customize initramfs - CurlyMo - 31st Jul, 2014, 06:20 PM
RE: Customize initramfs - rlogiacco - 31st Jul, 2014, 07:41 PM
RE: Customize initramfs for SD fallback - rlogiacco - 3rd Aug, 2014 01:26 AM
RE: Customize initramfs SD fallback - rlogiacco - 4th Aug, 2014, 08:21 PM
RE: Customize initramfs SD fallback - mk01 - 6th Aug, 2014, 09:02 PM
RE: Customize initramfs SD fallback - rlogiacco - 6th Aug, 2014, 10:02 PM
RE: Customize initramfs SD fallback - mk01 - 6th Aug, 2014, 10:08 PM
|