Re: Fwd: Adding Macs with FAI

2017-06-17 Thread Juri Grabowski
Hello,

I would try this with ipxe as iso or usb drive or as new entry in your
bootloader + network boot with fai.
You can embed ipxe config to image or make use of your dhcp.
# just a part of dhcpd.conf from isc-dhcp-server package:
   if exists user-class and option user-class = "iPXE" {
set hwmac = concat (
suffix (concat ("0", binary-to-ascii (16, 8, "", 
substring(hardware,1,1))),2), ":",
suffix (concat ("0", binary-to-ascii (16, 8, "", 
substring(hardware,2,1))),2), ":",
suffix (concat ("0", binary-to-ascii (16, 8, "", 
substring(hardware,3,1))),2), ":",
suffix (concat ("0", binary-to-ascii (16, 8, "", 
substring(hardware,4,1))),2), ":",
suffix (concat ("0", binary-to-ascii (16, 8, "", 
substring(hardware,5,1))),2), ":",
suffix (concat ("0", binary-to-ascii (16, 8, "", 
substring(hardware,6,1))),2)
);

  filename = concat( "http://$FQDN/";, hwmac );
   }

You need webserver on your fai-server.
In you http DocumentRoot you need symlinks like that:
ln -s /srv/tftp/fai/pxelinux.cfg/01-52-54-00-00-00-00 52:54:00:00:00:00
ln -s /srv/fai/stretch-nfsroot/boot/initrd.img-4.9.0-3-amd64 
/var/www/html/stretch-initrd
ln -s /srv/fai/stretch-nfsroot/boot/vmlinuz-4.9.0-3-amd64 
/var/www/html/stretch-kernel

And your fai-config template should looks like that:
#!ipxe
#dhcp
kernel http://$FQDN/stretch-kernel boot=live components 
root=live:http://$FQDN/stretch-squashfs.img noswap live aufs kernel.sysrq=1 
sysrq_always_enabled log_buf_len=1M quickreboot consoleblank=0 keep_bootcon 
initrd=stretch-initrd rootwait=120 rd.live.image rd.neednet rd.luks=0 rd.lvm=0 
rd.md=0 rd.dm=0 rd.driver.pre=loop rd.noverifyssl rd.skipfsck 
rd.live.overlay.check rd.live.overlay.reset rd.live.ram 
FAI_FLAGS=verbose,sshd,initial,createvt FAI_ACTION=install 
FAI_CONFIG_SRC=$YOUR_FAI_CONFIG_SRC LOGUSER=fai
initrd http://$FQDN/stretch-initrd
boot


Your Squashfs image you can build with: fai-cd -Mef -d "" stretch-squashfs.img
after "fai-chboot -c $TEMPLATE $HOST" you should remove the first line
with "sed 1d /srv/tftp/fai/pxelinux.cfg/$HOST" or use patched version of 
fai-chboot
to avoid "# template generated by fai-chboot for host" on first line.

After this manipulations you can boot your macbook with ipxe and start
the installation over http.

Best Regards,
Juri Grabowski


Re: Proxy configuration during Server Insallation from FAI-CD

2017-06-23 Thread Juri Grabowski
Hello,

if you just need proxy for debian packages, you can use
APTPROXY=http://$YOUR_PROXY as a kernel-option.

Regards
Juri

--
LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax:  +49 (7 11) 78 28 50 91
Mail: li...@lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart


Re: make nfs root dies on dracut setup in stretch build

2017-06-26 Thread Juri Grabowski
Hi,

is curl installed in your chroot?

Best regards,
Juri Grabowski

--
LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax:  +49 (7 11) 78 28 50 91
Mail: li...@lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart


Re: Fai.me support for i386 and lxqt desktop

2020-10-22 Thread Juri Grabowski
Hello,

I have downloaded this ISO and in
/var/lib/fai/config/package_config/FAIME I have found:

PACKAGES install-norec
task-lxqt-desktop
PACKAGES install
task-french

I think, that the problem is, in contrast to task-french task-lxqt-desktop 
would be installed
without recommends.

Best Regards,
Juri Grabowski


Re: Hooks being run twice (same class)

2021-11-17 Thread Juri Grabowski
Hello,

I mean you can solve this problem by using fai-deps on the end of your class 
definitions.

cat <<'EOF'>class/90-fai-deps.sh 
#!/bin/sh
fai-deps
EOF

Best Regards,
Juri Grabowski


Re: LUKS, "no device found"

2022-01-24 Thread Juri Grabowski
Hello,

I was looking to my configuration right now and it looks like yours, but with 
"disk_config end" on the end.
Which version of fai, setup-storage are you using? because of 

>(STDERR)   No device found for /dev/mapper/cyrpt_dev_sda3
 ^^
looks wrong.

Best Regards,
Juri Grabowski


Re: Booting GPT part table via BIOS, bootable flag required in protective MBR

2022-02-09 Thread Juri Grabowski
Hello Mike, 

it looks for me like a BIOS problem if it works on another machines. Can you 
look for BIOS Update for this laptop?
I have similar setups without such problems.
As a workaround you can use in class/

cat <<'EOF'>21-edu-board_name
#! /bin/bash
# assign classes to hosts based on their board_name
echo -n EDU_AUTO_BOARD_;egrep -o '^\w*' /sys/devices/virtual/dmi/id/board_name 
|tr 'a-z' 'A-Z'
exit 0
EOF

cat <<'EOF'>21-edu-product_name
#! /bin/bash
# assign classes to hosts based on their product_name
echo -n EDU_AUTO_PRODUCT_;egrep -o '^\w*' 
/sys/devices/virtual/dmi/id/product_name |tr 'a-z' 'A-Z'
exit 0
EOF

cat <<'EOF'>21-edu-sysvendor
#! /bin/bash
# assign classes to hosts based on their SYS VENDOR
echo -n EDU_AUTO_VENDOR_;egrep -o '^\w*' /sys/devices/virtual/dmi/id/sys_vendor 
|tr 'a-z' 'A-Z'
exit 0
EOF

cat <<'EOF'>85-auto_product_HP_
#! /bin/bash
ifclass EDU_AUTO_PRODUCT_HP_ && echo LVM_EDU_ROAMING_MBR
EOF

chmod +x 21-edu-board_name 21-edu-product_name 21-edu-sysvendor 
85-auto_product_HP_*

and define your disk_config LVM_EDU_ROAMING_MBR

Best Regards,
Juri Grabowski