Skip to content
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

Comparison of files on iso: /root vs. /home/pentoo #61

Open
Wuodan opened this issue Jul 24, 2020 · 1 comment
Open

Comparison of files on iso: /root vs. /home/pentoo #61

Wuodan opened this issue Jul 24, 2020 · 1 comment

Comments

@Wuodan
Copy link
Contributor

Wuodan commented Jul 24, 2020

Once upon a time our beloved monarch @ZeroChaos- was magnanimously reviewing code. But suddenly he felt a sting of migraine when he stumbled upon this vicious code statement:
https://github.com/pentoo/pentoo-installer/blob/master/share/pentoo-installer/configure_system#L214

rsync "${DESTDIR}"'/root/.[!.]*' "${DESTDIR}/home/${USERNAME}/"

@ZeroChaos- was far from satisfied and exclaimed:
"This can't be!"
"If anything is in /root that isn't in /home/pentoo, then that should be considered a bug"

Comparison of files on iso: /root vs. /home/pentoo

Result from pentoo-full-amd64-hardened-2020.0_p20200724.iso

compare_result_p20200724.txt

file: is ok: .bash_profile
file: is ok: .bashrc
dir : is ok: .config
dir : is ok: .config/xfce4
file: is ok: .config/xfce4/helpers.rc
dir : is ok: .config/xfce4/xfconf
dir : is ok: .config/xfce4/xfconf/xfce-perchannel-xml
file: only exists in /root: .config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
file: is ok: .config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
dir : is ok: .e
dir : is ok: .e/e
dir : only exists in /root: .e/e/applications
dir : only exists in /root: .e/e/applications/bar
dir : only exists in /root: .e/e/applications/bar/default
file: only exists in /root: .e/e/applications/bar/default/.order
dir : only exists in /root: .e/e/applications/startup
file: only exists in /root: .e/e/applications/startup/.order
file: only exists in /root: .keep
dir : is ok: .local
dir : is ok: .local/share
dir : is ok: .local/share/applications
file: only exists in /root: .local/share/applications/dokeybindings.desktop
file: only exists in /root: .local/share/applications/mimeapps.list
dir : only exists in /root: .local/share/xfce4
dir : only exists in /root: .local/share/xfce4/helpers
file: only exists in /root: .local/share/xfce4/helpers/custom-WebBrowser.desktop
dir : only exists in /root: .subversion
file: only exists in /root: .subversion/README.txt
dir : only exists in /root: .subversion/auth
dir : only exists in /root: .subversion/auth/svn.simple
dir : only exists in /root: .subversion/auth/svn.ssl.client-passphrase
dir : only exists in /root: .subversion/auth/svn.ssl.server
dir : only exists in /root: .subversion/auth/svn.username
file: only exists in /root: .subversion/config
file: only exists in /root: .subversion/servers
dir : is ok: Desktop
file: is ok: Desktop/networkmanager.desktop

How to

  1. mkdir /mnt/iso && mkdir /mnt/squashfs
  2. mount iso: mount -o loop,ro <path to iso> /mnt/iso
  3. mount image.squashfs: mount -o loop,ro /mnt/iso/image.squashfs /mnt/squashfs
  4. run script: ./compare.sh
    compare.sh.txt
  5. umount: umount /mnt/squashfs /mnt/iso
  6. cleanup: rmdir /mnt/squashfs /mnt/iso
@ZeroChaos-
Copy link
Contributor

Lol, thanks man. I really appreciate the tone of this bug. It may be a requirement that all future bugs can be sung to a jaunty tune....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants