Skip to content

Commit

Permalink
add modded profile fix #10
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk7 committed Oct 10, 2019
1 parent b080181 commit e2d1d00
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ rootfs.tar.gz: rootfs
cd rootfs; sudo tar -zcpf ../rootfs.tar.gz `sudo ls`
sudo chown `id -un` rootfs.tar.gz

rootfs: base.tar.gz
rootfs: base.tar.gz profile
@echo -e '\e[1;31mBuilding rootfs...\e[m'
mkdir rootfs
sudo tar -zxpf base.tar.gz -C rootfs
sudo cp -f /etc/resolv.conf rootfs/etc/resolv.conf
sudo cp -f /etc/profile rootfs/etc/profile
sudo chroot rootfs /sbin/apk update
sudo chroot rootfs /sbin/apk add bash
echo "# This file was automatically generated by WSL. To stop automatic generation of this file, remove this line." | sudo tee rootfs/etc/resolv.conf
Expand Down
11 changes: 11 additions & 0 deletions profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export CHARSET=UTF-8
export LANG=C.UTF-8
export PAGER=less
export PS1='\h:\w\$ '
umask 022

for script in /etc/profile.d/*.sh ; do
if [ -r $script ] ; then
. $script
fi
done

2 comments on commit e2d1d00

@dazoe
Copy link

@dazoe dazoe commented on e2d1d00 Oct 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Um, why?! This just caused me half an hour of pulling out my hair

@yuk7
Copy link
Owner Author

@yuk7 yuk7 commented on e2d1d00 Oct 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dazoe Oh...
I'm so embarrassed...

Please sign in to comment.