While I can do it just fine with the help of the tools: fdisk and fs2desk, automating it is kind of tricky.
IDK if it's necessarily the case, but It seems that I should align the second partition with the end of the first one when resizing it or else the OS just keeps rebooting in loops.
Since parted doesn't respect that type of alignment, I had to fdisk and type the end address of the 1st partition (/boot), I don't how to automate that without risking the whole instalation going wrong: old versions of tools print things differently, so grep is not going to cut it.
I'm a noob when it comes to Drives, please suggest some options to me.
Also, I wonder if it's possible to just chroot into OpenWrt and install all packages without having to boot into it? maybe I'll try to do that in the future.
While I can do it just fine with the help of the tools: fdisk and fs2desk, automating it is kind of tricky.
IDK if it's necessarily the case, but It seems that I should align the second partition with the end of the first one when resizing it or else the OS just keeps rebooting in loops.
Since parted doesn't respect that type of alignment, I had to fdisk and type the end address of the 1st partition (/boot), I don't how to automate that without risking the whole instalation going wrong: old versions of tools print things differently, so grep is not going to cut it.
I'm a noob when it comes to Drives, please suggest some options to me.
Also, I wonder if it's possible to just chroot into OpenWrt and install all packages without having to boot into it? maybe I'll try to do that in the future.
While I can do it just fine with the help of the tools: fdisk and fs2desk, automating it is kind of tricky.
IDK if it's necessarily the case, but It seems that I should align the second partition with the end of the first one when resizing it or else the OS just keeps rebooting in loops.
Since parted doesn't respect that type of alignment, I had to fdisk and type the end address of the 1st partition (/boot), I don't how to automate that without risking the whole instalation going wrong: old versions of tools print things differently, so grep is not going to cut it.
I'm a noob when it comes to Drives, please suggest some options to me.
Also, I wonder if it's possible to just chroot into OpenWrt and install all packages without having to boot into it? maybe I'll try to do that in the future.
It would be a one-time task if OpenWrt was backed by some giant company. Quircks are all over the place, I'm yet to make a backup script after automating the installation.
Sure, OpenWrt is a bit of a different animal than other OS's... but, given the way you have been approaching OpenWrt, I suspect that most of the 'quirks' are actually user errors. These are typically the result of one or more of the following:
not reading the documentation
lack of understanding of how OpenWrt works
lack of understanding of how and why OpenWrt is different than other Linux distros
Faulty configuration elements due to the above and/or incomplete understanding of the network stack
Incorrect assumptions and/or expectations about what the OS does.
I would recommend that you go back to first principles and make targeted changes one at a time, testing as you go. Do this only after you read the documentation and search the forum for similar topics. If you don't understand something, or you'd like input about how to achieve something, ask us before going neck deep in something that you don't fully understand. And critically, ensure that you have a complete understanding of your goals in such a way as you can concisely explain them to us.
Maybe you can describe to us what you are trying to do with OpenWrt and what automation tools you need and why.
Automation depends very much on what tasks you need to... given that most of what you've asked about thus far can be done with a one-line command, automating it would be as simple as putting that in a script. But again, it's not really clear at any scale what you really want to achieve here.