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
mkdir /mnt/iso && mkdir /mnt/squashfs
- mount iso:
mount -o loop,ro <path to iso> /mnt/iso
- mount image.squashfs:
mount -o loop,ro /mnt/iso/image.squashfs /mnt/squashfs
- run script:
./compare.sh
compare.sh.txt
- umount:
umount /mnt/squashfs /mnt/iso
- cleanup:
rmdir /mnt/squashfs /mnt/iso
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
@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
How to
mkdir /mnt/iso && mkdir /mnt/squashfsmount -o loop,ro <path to iso> /mnt/isomount -o loop,ro /mnt/iso/image.squashfs /mnt/squashfs./compare.shcompare.sh.txt
umount /mnt/squashfs /mnt/isormdir /mnt/squashfs /mnt/iso