cards install cards.devel git
wget http://rems.techozor.fr/sources/install-nutyx{,.md5sum}
md5sum -c install-nutyx.md5sum
chmod -v 755 install-nutyx
mv -v install-nutyx /usr/bin/install-nutyx
If you've already make the installation process, you have to remove the LFS user from the nutyx base by
userdel lfs
rm -r /home/lfs
rm -r /mnt/lfs
groupdel lfs
export LFS=/mnt/lfs
mkdir -pv $LFS
mount /dev/sda2 $LFS
echo $LFS
export LFS=/mnt/lfs
mkdir -vp $LFS/{sources,tools}
ln -svf $LFS/tools /
ln -svf $LFS/sources /
groupadd lfs
useradd -s /bin/bash -g lfs -m -k /dev/null lfs
passwd lfs
chown -v lfs $LFS/{tools,sources}
chmod -v a+wt $LFS/sources
chown -v lfs $LFS
cat > /home/lfs/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w$ ' /bin/bash
EOF
echo "set +h
umask 022
LFS=$LFS
LC_ALL=POSIX
LFS_TARGET=$(uname -m)-lfs-linux-gnu
PATH=/home/lfs/bin:/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TARGET PATH" > /home/lfs/.bashrc
su - lfs
git clone https://github.com/rems28/base-sysV.git development
cd development
scripts/runmebeforepass1
"====> Successfull configured"
cd chroot
pass
"=======> Building '/home/lfs/development/chroot/cards/Pkgfile' succeeded.
/home/lfs/development/chroot"
exit
echo $LFS
"/mnt/lfs"
chown -R root:root $LFS
install -dv -m0750 $LFS/root
ln -sv development/scripts $LFS/root/bin
mv /home/lfs/development $LFS/root/
cd $LFS/root/development/base/nutyx
/tools/bin/pkgmk -cf ../../../bin/pkgmk.conf.passes
/tools/bin/pkgadd -r $LFS nutyx1*
/tools/bin/pkgadd -r $LFS nutyx.man1*
/tools/bin/pkginfo -r $LFS -i
"(base) nutyx 8.2-1...
(base) nutyx.man 8.2-1..."
VERSION="development" install-nutyx -ic
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run
if [ -h /dev/shm ]; then mkdir -pv
chmod 1777 /dev/shm
cp -v /etc/resolv.conf $LFS/etc
mount|grep $LFS
"/dev/sda2 on /mnt/lfs type ext4 (rw)
/devtmpfs on /mnt/lfs/dev type devtmpfs (rw,nosuid,relatime,size=16300988k,nr_inodes=4075247,mode=755)
devpts on /mnt/lfs/dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
proc on /mnt/lfs/proc type proc (rw,relatime)
sysfs on /mnt/lfs/sys type sysfs (rw,relatime)
tmpfs on /mnt/lfs/run type tmpfs (rw,relatime)"
chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w$ ' \
/bin/bash --login +h
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/root/bin
cd /root/development/base
pass
exit
cd $LFS/root/development/base/bash
for PACK in *.xz; do /tools/bin/pkgadd -r $LFS $PACK;done
/tools/bin/pkginfo -r $LFS -i|grep bash
"(base) bash 4.4-1
(base) bash.da 4.4-1
(base) bash.de 4.4-1
(base) bash.devel 4.4-1
(base) bash.doc 4.4-1
..."
chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w$ ' \
/bin/bash --login +h
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/root/bin
cd /root/development/base
pass
"ADD: ca-certificates-20150725, 1282 files: 100%
=======> Installing 'ca-certificates1418739487x86_64.cards.tar' succeeded.
=======> compress ca-certificates1418739487x86_64.cards.tar"
exit
echo $LFS
chroot $LFS /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u: \w$' \
/bin/bash --login
something will coming
cd /usr/ports/base/base/kernel-lts
pkgmk -d -i
cards depcreate grub
grub-install /dev/sda
cat > /boot/grub/grub.cfg << "EOF"
#Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,2)
menuentry "GNU/Linux, NuTyX-systemd" {
linux /boot/kernel root=/dev/sda2 ro
}
EOF
echo "nutyx-systemd" > /etc/hostname
cat > /etc/hosts << "EOF"
#Begin /etc/hosts
127.0.0.1 localhost
127.0.1.1 nutyx-systemd.home nutyx-systemd
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
#End /etc/hosts
EOF
cards depcreate dhcpcd
after compiling dhcpcd, you have to enable a systemd service. you have to know your network interface with
ip a
systemctl enable dhcpcd@"your network interface"
cards depcreate vim
ln -sfv /run/systemd/resolve/resolv.conf /etc/resolv.conf
cat > /etc/fstab << "EOF"
#Begin /etc/fstab
#file system mount-point type options dump fsck order
/dev/sda2 / ext4 defaults 1 1
#/dev/ swap swap pri=1 0 0
#End /etc/fstab
EOF
cat > /etc/adjtime << "EOF"
0.0 0 0.0
0
LOCAL
EOF
cat > /etc/vconsole.conf << "EOF"
KEYMAP=fr-latin9
FONT=Lat2-Terminus16
EOF
cat > /etc/locale.conf << "EOF"
LANG=fr_FR.utf8
EOF
cat > /etc/os-release << "EOF"
NAME="Linux From Scratch"
VERSION="nutyx-systemd"
ID=lfs
PRETTY_NAME="nutyx-systemd"
VERSION_CODENAME=""
EOF
passwd
nu
To known what to umount
mount | grep $LFS
and
unmount the filesystems
umount /mnt/lfs/{run,proc,sys,dev/pts,dev,}