Compare commits

...

3 Commits

Author SHA1 Message Date
c7ada859b9 🏗️」 wip: started mounting setup 2025-09-08 22:54:56 +02:00
9f10aa353e 🏗️」 wip: started setup to build ft_linux 2025-09-08 16:34:13 +02:00
5df7213f0a 🏗️」 wip: work in progress, not done yet. 2025-09-08 14:45:35 +02:00
4 changed files with 124 additions and 6 deletions

5
Justfile Normal file
View File

@ -0,0 +1,5 @@
# Just list the options
@default:
just -l

85
TODO.md Normal file
View File

@ -0,0 +1,85 @@
- [ ] make partition (ext4)
- [ ] root (30gb) (ext4) (/)
- [ ] swapppp (2gb) (swap)
- [ ] grub bios partition (1mb) (???)
- [ ] boot partition (500mb) (fat32) (/boot)
- [ ] soft to install
- [ ] acl
- [ ] attr
- [ ] autoconf
- [ ] automake
- [ ] a shell (probably fish and bash in /bin/sh)
- [ ] bc
- [ ] binutils
- [ ] bison
- [ ] bzip2
- [ ] check
- [ ] coreutils
- [ ] dejaGNU
- [ ] diffutils
- [ ] eudev
- [ ] e2fsprogs
- [ ] expat
- [ ] expect
- [ ] file
- [ ] findutils
- [ ] flex
- [ ] gawk
- [ ] gcc
- [ ] gdbm
- [ ] gettext
- [ ] glibc
- [ ] GMP
- [ ] gperf
- [ ] grep
- [ ] groff
- [ ] GRUB
- [ ] gzip
- [ ] iana-etc
- [ ] inetutils
- [ ] iproute2
- [ ] kbd
- [ ] kmod
- [ ] less
- [ ] libcap
- [ ] libpipeline
- [ ] libtool
- [ ] m4
- [ ] make
- [ ] man-DB
- [ ] man-pages
- [ ] mpc
- [ ] mpfr
- [ ] ncurses
- [ ] patch
- [ ] perl
- [ ] pkg-config
- [ ] procps
- [ ] psmisc
- [ ] readline
- [ ] sed
- [ ] shadow
- [ ] sysklogd
- [ ] sysvinit
- [ ] tar
- [ ] tcl
- [ ] texinfo
- [ ] time zone data
- [ ] udev-lfs tarball
- [ ] a text editor (probably my nvim conf)
- [ ] xml::parser
- [ ] xz utils
- [ ] zlib
- [ ] optional but recommended
- [ ] wget and curl
- [ ] things to install screen
- [ ] bonus soft to install
- [ ] minishell
- [ ] webserv
- [ ] other 42 project
- [ ] pogit
- [ ] hyprland (f*ck x11)
- [ ] other random useless shit for fun

View File

@ -4,7 +4,7 @@
};
outputs =
inputs@{ nixpkgs, ... }:
{ nixpkgs, ... }:
let
supportedSystems = [
"x86_64-linux"
@ -26,15 +26,34 @@
{ pkgs }:
{
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
];
hardeningDisable = [ "all" ];
packages = with pkgs; [
nixfmt-rfc-style
gcc
clang
bison
coreutils
diffutils
binutils
diffutils
findutils
gawk
gzip
m4
gnumake
patch
perl
python312
texinfo
xz
gcc
clang
just
nixfmt-rfc-style
];
shellHook = ''
export LFS=/mnt/lfs
umask 022
'';
};
}
);

9
src/mount.sh Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env sh
mkdir -pv "$LFS"
#mount -v -t ext4 /dev/
mkdir -pv "$LFS/boot"
chown root:root "$LFS"
chmod 755 "$LFS"