mkdir /home/old.home
mv ~/* /home/old.home
mv ~/.* /home/old.home
ln -s /home/old.home /home/$USER
heroku login
Output:
cannot create user data directory: /home/jmunsch/snap/heroku/4048: Not a directory
ll /home/
total 24K
drwxr-xr-x 15 jmunsch jmunsch 4.0K Jun 12 01:52 .gvm/
lrwxrwxrwx 1 root root 52 Jun 12 01:28 jmunsch -> /media/jmunsch/27df6b66-4822-4d4e-a03e-41621291ff37//
drwx------ 5 jmunsch jmunsch 4.0K Jun 12 01:39 .local/
drwxr-xr-x 8 jmunsch jmunsch 4.0K Jun 12 01:50 .npm/
drwxr-xr-x 8 jmunsch jmunsch 4.0K Jun 12 01:51 .nvm/
drwxrwxr-x 13 jmunsch jmunsch 4.0K Jun 12 01:43 .pyenv/
drwxrwxr-x 26 jmunsch jmunsch 4.0K Jun 12 01:41 .steam/
sudo apparmor_status | grep heroku
12 profiles are in complain mode.
snap-update-ns.heroku
snap.heroku.heroku
snap.heroku.hook.configure
Related:
I tried:
sudo dpkg-reconfigure apparmor
# and enter /home/.snap/
- 1620771/comments/6
cat /etc/apparmor.d/tunables/home.d/ubuntu
# This file is auto-generated. It is recommended you update it using:
# $ sudo dpkg-reconfigure apparmor
#
# The following is a space-separated list of where additional user home
# directories are stored, each must have a trailing '/'. Directories added
# here are appended to @{HOMEDIRS}. See tunables/home for details.
@{HOMEDIRS}+=/home/.snap/
Ah, okay, just tried this 1620771/comments/7:
sudo rm -f /etc/apparmor.d/cache/* /var/cache/apparmor/snap.*
sudo reboot
Still didn’t work. (also tried /media/jmunsch/27df6b66-4822-4d4e-a03e-41621291ff37/
)
Oof, that entire thread is a dumpster fire.
anyways :
mkdir /home/$USER
sudo mount --bind \
/media/$USER/27df6b66-4822-4d4e-a03e-41621291ff37/ \
/home/$USER
seemed to work
so doing this in the fstab … was a complete disaster … I ran into 2 issues when trying to get the bind mount setup in fstab:
- login logout loop
- systemd-boot completely failing to a black screeen with a blinking cursor
DO NOT MESS WITH FSTAB (UNLESS YOU KNOW FOR SURE WHAT YOURE DOING, which i barely do)
blkid
/dev/mmcblk0p1: `UUID="27df6b66-4822-4d4e-a03e-41621291ff37"` TYPE="ext4" PARTUUID="62d71261-01"
/
this caused the login logout loop like logs out immediately
echo 'UUID="27df6b66-4822-4d4e-a03e-41621291ff37" /home/jmunsch ext4 bind | sudo tee -a /etc/fstab
so i was logged out immediately so logging into a tty ctl+alt+F2 I was NOT able to see the /media/jmunsch/my-home-dir so i though wow maybe i can define a dependency like github com/systemd/systemd/commit/3519d230c8bafe834b2dac26ace49fcfba139823 where “x-systemd.requires” can define mount dependencies …
this caused a total gui boot failure (boot logs, and then white blinky cursor of doom)
echo 'UUID="27df6b66-4822-4d4e-a03e-41621291ff37" /home/jmunsch x-systemd.requires=/media/jmunsch,ext4 bind | sudo tee -a /etc/fstab
after much trial and tribulation (
so i had to create a usb boot media on an old busted laptop with a broken touch pad, running xfce4 on ubuntu 17.10 … was able to nmtui
, download an iso, and dd
the image over to some scrap usb, disabling secure boot, disabling fast boot, and whatever else, was able to boot and mount the nvme drive using ahci … and eventually decrypting the drive, using cryptsetup luksOpen
was able to mount the logical volume, and … hnngggggh
)
I was able to “fix” the fstab back to a broken, but loading state.
Still looking into this.
Some other failed attempts:
#UUID=27df6b66-4822-4d4e-a03e-41621291ff37 /home/jmunsch ext4 bind,users,errors=remount-ro,nobootwait,auto 0 0
#UUID=27df6b66-4822-4d4e-a03e-41621291ff37 /home/jmunsch ext4 comment=x-gvfs-show,users,uid=1000,nofail,nobootwait,auto 0 0
Woohoo:
sudo systemctl status home-jmunsch.mount
● home-jmunsch.mount - /home/jmunsch
Loaded: loaded (/etc/fstab; generated)
Active: active (mounted) since Mon 2021-06-14 23:20:21 CDT; 9min ago
Where: /home/jmunsch
What: /dev/mmcblk0p1
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
Tasks: 0 (limit: 38221)
Memory: 84.0K
CGroup: /system.slice/home-jmunsch.mount
Jun 14 23:20:21 pop-os systemd[1]: Mounting /home/jmunsch...
Jun 14 23:20:21 pop-os systemd[1]: Mounted /home/jmunsch.
Appears to be working fstab entry, ( i’m not sure why bind didn’t work, and just defaults appears to):
UUID=27df6b66-4822-4d4e-a03e-41621291ff37 /home/jmunsch ext4 defaults