simplification drastique (7)

This commit is contained in:
neox 2024-07-09 16:32:37 +02:00
parent 32e9db0703
commit ab2ab18195
No known key found for this signature in database
GPG Key ID: 57BC26A3687116F6
1 changed files with 5 additions and 6 deletions

View File

@ -46,7 +46,7 @@ fi
echo -e -n "${BLUE}Downloading configuration...${NC}" echo -e -n "${BLUE}Downloading configuration...${NC}"
rm -f config.scm rm -f config.scm
wget forge.chalec.org/neox/guix_jerome/raw/branch/master/config.scm wget -q forge.chalec.org/neox/guix_jerome/raw/branch/master/config.scm
echo -e "${GREEN}OK${NC}" echo -e "${GREEN}OK${NC}"
echo -e -n "${BLUE}Creating disk layout...${NC}" echo -e -n "${BLUE}Creating disk layout...${NC}"
@ -54,20 +54,19 @@ echo -e -n "${BLUE}Creating disk layout...${NC}"
parted -s "$DISK" mklabel gpt parted -s "$DISK" mklabel gpt
parted -s "$DISK" mkpart primary fat32 1MiB 5% parted -s "$DISK" mkpart primary fat32 1MiB 5%
parted -s "$DISK" mkpart primary ext4 5% 100% parted -s "$DISK" mkpart primary ext4 5% 100%
parted -s "$DISK" print
echo -e "${GREEN}OK${NC}" echo -e "${GREEN}OK${NC}"
echo -e -n "${BLUE}Setting up root partition encryption...${NC}" echo -e "${BLUE}Setting up root partition encryption...${NC}"
cryptsetup luksFormat "${DISK}p2" cryptsetup luksFormat "${DISK}p2"
echo -e "${GREEN}OK${NC}" echo -e "${GREEN}OK${NC}"
echo -e -n "${BLUE}Unlocking root partition...${NC}" echo -e "${BLUE}Unlocking root partition...${NC}"
cryptsetup open "${DISK}p2" ROOT cryptsetup open "${DISK}p2" ROOT
echo -e "${GREEN}OK${NC}" echo -e "${GREEN}OK${NC}"
echo -e -n "${BLUE}Formatting disks partitions...${NC}" echo -e "${BLUE}Formatting disks partitions...${NC}"
mkfs.vfat "${DISK}p1" mkfs.vfat "${DISK}p1"
mkfs.ext4 -L ROOT /dev/mapper/ROOT mkfs.ext4 -L ROOT /dev/mapper/ROOT
@ -95,7 +94,7 @@ mv config.scm /mnt/etc/config.scm
echo -e "${GREEN}OK${NC}" echo -e "${GREEN}OK${NC}"
echo -e -n "${BLUE}Installing GNU Guix${NC}" echo -e -n "${BLUE}Installing GNU Guix...${NC}"
herd start cow-store /mnt herd start cow-store /mnt