-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in shrink-backup - Journal is missing after first boot #56
Comments
As I said on the Armbian forum, you need to provide proof that the files are missing on the img before you boot. I did exactly this on a armbian system.
I made a backup from this system to
I then confirmed that the files were still there:
The files are included and exists on the img. So please provide this to show if shrink-backup includes the files or not. Edit |
Here is my "original" lsblk output: This is what is processed by the script. Looks like a correct Armbian SD. Here is a text version of loop0p1 /var/log : -rw-r--r-- 1 root root 5241 янв 13 00:00 alternatives.log Here is a text version of loop0p1 /var/log.hdd : -rw-r--r-- 1 root root 5241 янв 13 00:00 alternatives.log AFAICS, we have a little difference here: So, we could conclude that relative links have been survived, while absolute - not. Is this a way to go? |
I have no idea, where this RAM disk is created, and how its contents is filled up. |
As I said, ram or not, does not matter. One last time. Provide information EXACTLY like I did in my first response. I am NOT going to guess and try to understand some strange images. Provide the requested information if you claim something to be a bug or nothing will be done from my side. I already explained that there is no journal in there on a normal system WHILE RUNNING, they are in /run on a live system. If you want to copy those files from that EXACT location (/var/log/journal), do it while the system is NOT BOOTED, ie, you do not need this script for that. This script is for backing up a RUNNING system. So, provide I want to see every command you do, Edit |
Sorry but we don't understand each other...
I can't do it, because everything is OK in both the image file and burned SD before the first boot. Nevertheless, similar outputs for my ORIGINAL LIVE SYSTEM are below:
Similar outputs for the DUPLICATED LIVE SYSTEM are below:
I created a loop with Here is a listing of
Here is a listing of loop0p1
As you can see, everything is OK here. Next we boot it (i.e. boot from SD with it), and have the next
In other words, we see, that Here is a listing of
Here is a listing of loop0p1
As you can see, everything is OK here. Next we boot it, and have the next
In other words, we see that the I hope I was as clear as I can. Obviously you have some different OS. Where you downloaded it from? And thank you for your time! |
Then... What does shrink-backup have to do with any of this? As I have explained multiple times, there normally IS NO journal in /var/log on a running DEBIAN BASED system, it gets moved when booting and rotated back when shutting down. (You can change that behavior in journald, but normally, When the script is done, it's done. And if the files are there before boot, they are there. If they gets removed or symlinked or whatever, it has NOTHING to do with shrink-backup. Just out of curiosity, what do you have in
Sure, buy me one and I'll try it for you. xD |
Good question! Should I provide you with a proof of the fact, that contents, produced by
Obviously the "bad" symlink's date is different from the original directory's date, since a symlink is just a physical file created sometime during the system startup process. And of course, I never created it manually.
I can't tell, "how normal" is the "Armbian community" OS version. I just see, what I see.
In my opinion this statement is incorrect, but of course, who am I to argue with you...
inside it we have:
inside it we have:
Buy what? Would you like to say that the same OS version has different structure on different hardware? |
Nope, because a Important If
There seems to be something refusing to boot unless you shut down your system CORRECTLY. I have pointed you in a direction 4-5 times of what I think it is.
No they are not, they are exactly like files or directories on linux. When they are created, they are created. NOTHING in a linux filesystem is changed randomly at boot. A symlink is just a file with a different magic bit (or sticky bit or whatever it's called).
So if you find what is recreating that symlink, and why, you probably find the culprit of your refusal to boot.
Yes, of course... They are different releases. Some are from armbian, some are community driven outside of armbian support...
It was not, but that does not matter at all. All shrink-backup does is copy selected files to an img. But your question is a good one. Have YOU ensured the release of this particular distro acts this way with a fresh install and a reboot? You are the one claiming there is a bug in shrink-backup, YOU have to provide proof, I can not reproduce this issue. (you have to do the first run, and then reboot before trying to use shrink-backup) I will give you a hint, again, because I can be wrong. As you pointed out, the version I run is not the latest.
Your installation will probably not be confused at all, or, idk, refuse to boot when you have the same log hash in two locations, I honestly don't know, but it seems YOU have identified it as a problem for you... I'm no logging expert but:
|
Describe the bug
/var/log/journal link is missing after the first boot, though it is yet in place on burned SD.
/var/log.hdd/journal should be a directory, but it is a link, pointing to itself, but as a directory.
Looks like /var/log/journal is moved to /var/log.hdd/ while the first boot.
To Reproduce
Steps to reproduce the behavior:
Just apply the script to existing and correct file system, then burn the image to SD.
Expected behavior
A clear and concise description of what you expected to happen.
/var/log/~journal -> /var/log.hdd/journal sub-directory
Instead we get:
/var/log/~journal is absent.
/var/log.hdd/~journal -> /var/log.hdd/journal as a sub-directory.
Hardware (please complete the following information):
Additional context
I tied both -e and -az options. No difference.
Screenshots and logs are attached.
shrink-backup1.log
shrink-backup2.log
The text was updated successfully, but these errors were encountered: