Hello, I am working on a remote upgrade that will utilize a squashfs to boot off the hard drive. I have everything worked out and functioning, except I see installing extlinux as an unecesarry step. The only thing I use the command for is to install the ldlinux.sys file to the /boot/extlinux/ folder. The rest of it is just a file copy. What manual step can I take to avoid the installation of extlinux/syslinux on the target machine. I would simply like to copy the ldlinux.sys file to that directory and ensure it is linked to the correct inode. Does anyone know how I can achieve this using standard posix tools? Thanks! Ryan
On Thu, May 17, 2012 at 1:39 PM, Ryan Kuba <ryankuba at gmail.com> wrote:> I have everything worked out and functioning, except I see installing > extlinux as an unecesarry step. The only thing I use the command for > is to install the ldlinux.sys file to the /boot/extlinux/ folder.Except you forget that ldlinux.sys and the VBR are patched by the installer.> The rest of it is just a file copy. > > What manual step can I take to avoid the installation of > extlinux/syslinux on the target machine.If you want to pursue this (which I HIGHLY recommend against), I'd advice you to read the source code of the installer and realize the complexity involved.> I would simply like to copy the ldlinux.sys file to that directory and > ensure it is linked to the correct inode.inode doesn't matter.> Does anyone know how I can achieve this using standard posix tools?I wouldn't. -- -Gene
On Thu, May 17, 2012 at 12:39 PM, Ryan Kuba <ryankuba at gmail.com> wrote:> Hello, > > I am working on a remote upgrade that will utilize a squashfs to boot > off the hard drive.Why not make an iso image that has the installer/install image. This can be booted from a partition. (you can use isohybrid --partok to patch the iso image to make this possible). My install script that gets run off from the iso image runs an extlinux update on the on the target partition after the new filesystem image is copied to the target. I do remote installs that way, but your situation may be a bit different.> I have everything worked out and functioning, except I see installing > extlinux as an unecesarry step. The only thing I use the command for > is to install the ldlinux.sys file to the /boot/extlinux/ folder. > > The rest of it is just a file copy. > > What manual step can I take to avoid the installation of > extlinux/syslinux on the target machine. > > I would simply like to copy the ldlinux.sys file to that directory and > ensure it is linked to the correct inode. > > Does anyone know how I can achieve this using standard posix tools?Booting an iso image that has the squashfs image eliminates the need for all that. Just a suggestion, I don't know exactly how your upgrade process actually works. Dwight